@kousaku-maron/diffshape 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/{chunk-EAWLY4IY.js → chunk-AKBOSCJ7.js} +38 -7
- package/dist/bin/dbshape.js +1 -1
- package/dist/bin/depshape.js +1 -1
- package/dist/bin/diffshape.js +1 -1
- package/dist/bin/fileshape.js +1 -1
- package/dist/bin/ui/assets/index-B4TuM_zp.css +1 -0
- package/dist/bin/ui/assets/index-CEHIMwcQ.js +153 -0
- package/dist/bin/ui/index.html +2 -2
- package/package.json +4 -4
- package/dist/bin/ui/assets/index-8ie1NCfx.css +0 -1
- package/dist/bin/ui/assets/index-CnRZHirE.js +0 -152
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zh={exports:{}},fl={},Fh={exports:{}},Ee={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var No=Symbol.for("react.element"),xv=Symbol.for("react.portal"),vv=Symbol.for("react.fragment"),wv=Symbol.for("react.strict_mode"),kv=Symbol.for("react.profiler"),bv=Symbol.for("react.provider"),Ev=Symbol.for("react.context"),Sv=Symbol.for("react.forward_ref"),Cv=Symbol.for("react.suspense"),Nv=Symbol.for("react.memo"),jv=Symbol.for("react.lazy"),Zd=Symbol.iterator;function _v(e){return e===null||typeof e!="object"?null:(e=Zd&&e[Zd]||e["@@iterator"],typeof e=="function"?e:null)}var Bh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uh=Object.assign,Hh={};function yi(e,t,n){this.props=e,this.context=t,this.refs=Hh,this.updater=n||Bh}yi.prototype.isReactComponent={};yi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wh(){}Wh.prototype=yi.prototype;function yc(e,t,n){this.props=e,this.context=t,this.refs=Hh,this.updater=n||Bh}var xc=yc.prototype=new Wh;xc.constructor=yc;Uh(xc,yi.prototype);xc.isPureReactComponent=!0;var Jd=Array.isArray,Vh=Object.prototype.hasOwnProperty,vc={current:null},Gh={key:!0,ref:!0,__self:!0,__source:!0};function Kh(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Vh.call(t,r)&&!Gh.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:No,type:e,key:o,ref:s,props:i,_owner:vc.current}}function Tv(e,t){return{$$typeof:No,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wc(e){return typeof e=="object"&&e!==null&&e.$$typeof===No}function $v(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ef=/\/+/g;function Wl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$v(""+e.key):t.toString(36)}function cs(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case No:case xv:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Wl(s,0):r,Jd(i)?(n="",e!=null&&(n=e.replace(ef,"$&/")+"/"),cs(i,t,n,"",function(u){return u})):i!=null&&(wc(i)&&(i=Tv(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(ef,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Jd(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Wl(o,l);s+=cs(o,t,n,a,i)}else if(a=_v(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Wl(o,l++),s+=cs(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Do(e,t,n){if(e==null)return e;var r=[],i=0;return cs(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Iv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gt={current:null},ds={transition:null},Lv={ReactCurrentDispatcher:gt,ReactCurrentBatchConfig:ds,ReactCurrentOwner:vc};function qh(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:Do,forEach:function(e,t,n){Do(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Do(e,function(){t++}),t},toArray:function(e){return Do(e,function(t){return t})||[]},only:function(e){if(!wc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ee.Component=yi;Ee.Fragment=vv;Ee.Profiler=kv;Ee.PureComponent=yc;Ee.StrictMode=wv;Ee.Suspense=Cv;Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lv;Ee.act=qh;Ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Uh({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=vc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Vh.call(t,a)&&!Gh.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:No,type:e.type,key:i,ref:o,props:r,_owner:s}};Ee.createContext=function(e){return e={$$typeof:Ev,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bv,_context:e},e.Consumer=e};Ee.createElement=Kh;Ee.createFactory=function(e){var t=Kh.bind(null,e);return t.type=e,t};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(e){return{$$typeof:Sv,render:e}};Ee.isValidElement=wc;Ee.lazy=function(e){return{$$typeof:jv,_payload:{_status:-1,_result:e},_init:Iv}};Ee.memo=function(e,t){return{$$typeof:Nv,type:e,compare:t===void 0?null:t}};Ee.startTransition=function(e){var t=ds.transition;ds.transition={};try{e()}finally{ds.transition=t}};Ee.unstable_act=qh;Ee.useCallback=function(e,t){return gt.current.useCallback(e,t)};Ee.useContext=function(e){return gt.current.useContext(e)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(e){return gt.current.useDeferredValue(e)};Ee.useEffect=function(e,t){return gt.current.useEffect(e,t)};Ee.useId=function(){return gt.current.useId()};Ee.useImperativeHandle=function(e,t,n){return gt.current.useImperativeHandle(e,t,n)};Ee.useInsertionEffect=function(e,t){return gt.current.useInsertionEffect(e,t)};Ee.useLayoutEffect=function(e,t){return gt.current.useLayoutEffect(e,t)};Ee.useMemo=function(e,t){return gt.current.useMemo(e,t)};Ee.useReducer=function(e,t,n){return gt.current.useReducer(e,t,n)};Ee.useRef=function(e){return gt.current.useRef(e)};Ee.useState=function(e){return gt.current.useState(e)};Ee.useSyncExternalStore=function(e,t,n){return gt.current.useSyncExternalStore(e,t,n)};Ee.useTransition=function(){return gt.current.useTransition()};Ee.version="18.3.1";Fh.exports=Ee;var H=Fh.exports;/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Av=H,Rv=Symbol.for("react.element"),Ov=Symbol.for("react.fragment"),Mv=Object.prototype.hasOwnProperty,Pv=Av.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dv={key:!0,ref:!0,__self:!0,__source:!0};function Yh(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Mv.call(t,r)&&!Dv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Rv,type:e,key:o,ref:s,props:i,_owner:Pv.current}}fl.Fragment=Ov;fl.jsx=Yh;fl.jsxs=Yh;zh.exports=fl;var f=zh.exports,Xh={exports:{}},It={},Qh={exports:{}},Zh={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(D,U){var b=D.length;D.push(U);e:for(;0<b;){var Y=b-1>>>1,X=D[Y];if(0<i(X,U))D[Y]=U,D[b]=X,b=Y;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var U=D[0],b=D.pop();if(b!==U){D[0]=b;e:for(var Y=0,X=D.length,j=X>>>1;Y<j;){var I=2*(Y+1)-1,T=D[I],z=I+1,q=D[z];if(0>i(T,b))z<X&&0>i(q,T)?(D[Y]=q,D[z]=b,Y=z):(D[Y]=T,D[I]=b,Y=I);else if(z<X&&0>i(q,b))D[Y]=q,D[z]=b,Y=z;else break e}}return U}function i(D,U){var b=D.sortIndex-U.sortIndex;return b!==0?b:D.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,h=3,p=!1,y=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(D){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=D)r(u),U.sortIndex=U.expirationTime,t(a,U);else break;U=n(u)}}function w(D){if(x=!1,g(D),!y)if(n(a)!==null)y=!0,K(C);else{var U=n(u);U!==null&&G(w,U.startTime-D)}}function C(D,U){y=!1,x&&(x=!1,v(O),O=-1),p=!0;var b=h;try{for(g(U),d=n(a);d!==null&&(!(d.expirationTime>U)||D&&!L());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,h=d.priorityLevel;var X=Y(d.expirationTime<=U);U=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(a)&&r(a),g(U)}else r(a);d=n(a)}if(d!==null)var j=!0;else{var I=n(u);I!==null&&G(w,I.startTime-U),j=!1}return j}finally{d=null,h=b,p=!1}}var S=!1,$=null,O=-1,N=5,k=-1;function L(){return!(e.unstable_now()-k<N)}function _(){if($!==null){var D=e.unstable_now();k=D;var U=!0;try{U=$(!0,D)}finally{U?R():(S=!1,$=null)}}else S=!1}var R;if(typeof m=="function")R=function(){m(_)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,W=M.port2;M.port1.onmessage=_,R=function(){W.postMessage(null)}}else R=function(){E(_,0)};function K(D){$=D,S||(S=!0,R())}function G(D,U){O=E(function(){D(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,K(C))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(D){switch(h){case 1:case 2:case 3:var U=3;break;default:U=h}var b=h;h=U;try{return D()}finally{h=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var b=h;h=D;try{return U()}finally{h=b}},e.unstable_scheduleCallback=function(D,U,b){var Y=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?Y+b:Y):b=Y,D){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=b+X,D={id:c++,callback:U,priorityLevel:D,startTime:b,expirationTime:X,sortIndex:-1},b>Y?(D.sortIndex=b,t(u,D),n(a)===null&&D===n(u)&&(x?(v(O),O=-1):x=!0,G(w,b-Y))):(D.sortIndex=X,t(a,D),y||p||(y=!0,K(C))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var U=h;return function(){var b=h;h=U;try{return D.apply(this,arguments)}finally{h=b}}}})(Zh);Qh.exports=Zh;var zv=Qh.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Fv=H,$t=zv;function le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jh=new Set,oo={};function $r(e,t){li(e,t),li(e+"Capture",t)}function li(e,t){for(oo[e]=t,e=0;e<t.length;e++)Jh.add(t[e])}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qa=Object.prototype.hasOwnProperty,Bv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,tf={},nf={};function Uv(e){return qa.call(nf,e)?!0:qa.call(tf,e)?!1:Bv.test(e)?nf[e]=!0:(tf[e]=!0,!1)}function Hv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wv(e,t,n,r){if(t===null||typeof t>"u"||Hv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new yt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var kc=/[\-:]([a-z])/g;function bc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(kc,bc);ot[t]=new yt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(kc,bc);ot[t]=new yt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(kc,bc);ot[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ec(e,t,n,r){var i=ot.hasOwnProperty(t)?ot[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Wv(t,n,i,r)&&(n=null),r||i===null?Uv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tn=Fv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zo=Symbol.for("react.element"),zr=Symbol.for("react.portal"),Fr=Symbol.for("react.fragment"),Sc=Symbol.for("react.strict_mode"),Ya=Symbol.for("react.profiler"),em=Symbol.for("react.provider"),tm=Symbol.for("react.context"),Cc=Symbol.for("react.forward_ref"),Xa=Symbol.for("react.suspense"),Qa=Symbol.for("react.suspense_list"),Nc=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),nm=Symbol.for("react.offscreen"),rf=Symbol.iterator;function Ci(e){return e===null||typeof e!="object"?null:(e=rf&&e[rf]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,Vl;function zi(e){if(Vl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vl=t&&t[1]||""}return`
|
|
34
|
-
`+Vl+e}var Gl=!1;function Kl(e,t){if(!e||Gl)return"";Gl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
|
|
37
|
-
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function Vv(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=Kl(e.type,!1),e;case 11:return e=Kl(e.type.render,!1),e;case 1:return e=Kl(e.type,!0),e;default:return""}}function Za(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fr:return"Fragment";case zr:return"Portal";case Ya:return"Profiler";case Sc:return"StrictMode";case Xa:return"Suspense";case Qa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tm:return(e.displayName||"Context")+".Consumer";case em:return(e._context.displayName||"Context")+".Provider";case Cc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nc:return t=e.displayName||null,t!==null?t:Za(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Za(e(t))}catch{}}return null}function Gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Za(t);case 8:return t===Sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e){var t=rm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fo(e){e._valueTracker||(e._valueTracker=Kv(e))}function im(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ja(e,t){var n=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function of(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function om(e,t){t=t.checked,t!=null&&Ec(e,"checked",t,!1)}function eu(e,t){om(e,t);var n=Jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&tu(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tu(e,t,n){(t!=="number"||Ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Zr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(le(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(le(92));if(Fi(n)){if(1<n.length)throw Error(le(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jn(n)}}function sm(e,t){var n=Jn(t.value),r=Jn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function af(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ru(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bo,am=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function so(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qv=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){qv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function um(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=um(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yv=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function iu(e,t){if(t){if(Yv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(le(62))}}function ou(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var su=null;function jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lu=null,Jr=null,ei=null;function uf(e){if(e=To(e)){if(typeof lu!="function")throw Error(le(280));var t=e.stateNode;t&&(t=yl(t),lu(e.stateNode,e.type,t))}}function dm(e){Jr?ei?ei.push(e):ei=[e]:Jr=e}function fm(){if(Jr){var e=Jr,t=ei;if(ei=Jr=null,uf(e),t)for(e=0;e<t.length;e++)uf(t[e])}}function pm(e,t){return e(t)}function hm(){}var ql=!1;function mm(e,t,n){if(ql)return e(t,n);ql=!0;try{return pm(e,t,n)}finally{ql=!1,(Jr!==null||ei!==null)&&(hm(),fm())}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var r=yl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(le(231,t,typeof n));return n}var au=!1;if(Sn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){au=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{au=!1}function Xv(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Vi=!1,$s=null,Is=!1,uu=null,Qv={onError:function(e){Vi=!0,$s=e}};function Zv(e,t,n,r,i,o,s,l,a){Vi=!1,$s=null,Xv.apply(Qv,arguments)}function Jv(e,t,n,r,i,o,s,l,a){if(Zv.apply(this,arguments),Vi){if(Vi){var u=$s;Vi=!1,$s=null}else throw Error(le(198));Is||(Is=!0,uu=u)}}function Ir(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cf(e){if(Ir(e)!==e)throw Error(le(188))}function ew(e){var t=e.alternate;if(!t){if(t=Ir(e),t===null)throw Error(le(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cf(i),e;if(o===r)return cf(i),t;o=o.sibling}throw Error(le(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(le(189))}}if(n.alternate!==r)throw Error(le(190))}if(n.tag!==3)throw Error(le(188));return n.stateNode.current===n?e:t}function ym(e){return e=ew(e),e!==null?xm(e):null}function xm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xm(e);if(t!==null)return t;e=e.sibling}return null}var vm=$t.unstable_scheduleCallback,df=$t.unstable_cancelCallback,tw=$t.unstable_shouldYield,nw=$t.unstable_requestPaint,Ve=$t.unstable_now,rw=$t.unstable_getCurrentPriorityLevel,_c=$t.unstable_ImmediatePriority,wm=$t.unstable_UserBlockingPriority,Ls=$t.unstable_NormalPriority,iw=$t.unstable_LowPriority,km=$t.unstable_IdlePriority,pl=null,fn=null;function ow(e){if(fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(pl,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:aw,sw=Math.log,lw=Math.LN2;function aw(e){return e>>>=0,e===0?32:31-(sw(e)/lw|0)|0}var Uo=64,Ho=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function As(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Bi(l):(o&=s,o!==0&&(r=Bi(o)))}else s=n&~i,s!==0?r=Bi(s):o!==0&&(r=Bi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Jt(t),i=1<<n,r|=e[n],t&=~i;return r}function uw(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Jt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=uw(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bm(){var e=Uo;return Uo<<=1,!(Uo&4194240)&&(Uo=64),e}function Yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function dw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Jt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Tc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Te=0;function Em(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sm,$c,Cm,Nm,jm,du=!1,Wo=[],Vn=null,Gn=null,Kn=null,ao=new Map,uo=new Map,Fn=[],fw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ff(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(t.pointerId)}}function ji(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=To(t),t!==null&&$c(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pw(e,t,n,r,i){switch(t){case"focusin":return Vn=ji(Vn,e,t,n,r,i),!0;case"dragenter":return Gn=ji(Gn,e,t,n,r,i),!0;case"mouseover":return Kn=ji(Kn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ao.set(o,ji(ao.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,uo.set(o,ji(uo.get(o)||null,e,t,n,r,i)),!0}return!1}function _m(e){var t=hr(e.target);if(t!==null){var n=Ir(t);if(n!==null){if(t=n.tag,t===13){if(t=gm(n),t!==null){e.blockedOn=t,jm(e.priority,function(){Cm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);su=r,n.target.dispatchEvent(r),su=null}else return t=To(n),t!==null&&$c(t),e.blockedOn=n,!1;t.shift()}return!0}function pf(e,t,n){fs(e)&&n.delete(t)}function hw(){du=!1,Vn!==null&&fs(Vn)&&(Vn=null),Gn!==null&&fs(Gn)&&(Gn=null),Kn!==null&&fs(Kn)&&(Kn=null),ao.forEach(pf),uo.forEach(pf)}function _i(e,t){e.blockedOn===t&&(e.blockedOn=null,du||(du=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,hw)))}function co(e){function t(i){return _i(i,e)}if(0<Wo.length){_i(Wo[0],e);for(var n=1;n<Wo.length;n++){var r=Wo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vn!==null&&_i(Vn,e),Gn!==null&&_i(Gn,e),Kn!==null&&_i(Kn,e),ao.forEach(t),uo.forEach(t),n=0;n<Fn.length;n++)r=Fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)_m(n),n.blockedOn===null&&Fn.shift()}var ti=Tn.ReactCurrentBatchConfig,Rs=!0;function mw(e,t,n,r){var i=Te,o=ti.transition;ti.transition=null;try{Te=1,Ic(e,t,n,r)}finally{Te=i,ti.transition=o}}function gw(e,t,n,r){var i=Te,o=ti.transition;ti.transition=null;try{Te=4,Ic(e,t,n,r)}finally{Te=i,ti.transition=o}}function Ic(e,t,n,r){if(Rs){var i=fu(e,t,n,r);if(i===null)oa(e,t,r,Os,n),ff(e,r);else if(pw(i,e,t,n,r))r.stopPropagation();else if(ff(e,r),t&4&&-1<fw.indexOf(e)){for(;i!==null;){var o=To(i);if(o!==null&&Sm(o),o=fu(e,t,n,r),o===null&&oa(e,t,r,Os,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else oa(e,t,r,null,n)}}var Os=null;function fu(e,t,n,r){if(Os=null,e=jc(r),e=hr(e),e!==null)if(t=Ir(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Os=e,null}function Tm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rw()){case _c:return 1;case wm:return 4;case Ls:case iw:return 16;case km:return 536870912;default:return 16}default:return 16}}var Hn=null,Lc=null,ps=null;function $m(){if(ps)return ps;var e,t=Lc,n=t.length,r,i="value"in Hn?Hn.value:Hn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ps=i.slice(e,1<r?1-r:void 0)}function hs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vo(){return!0}function hf(){return!1}function Lt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vo:hf,this.isPropagationStopped=hf,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vo)},persist:function(){},isPersistent:Vo}),t}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ac=Lt(xi),_o=He({},xi,{view:0,detail:0}),yw=Lt(_o),Xl,Ql,Ti,hl=He({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ti&&(Ti&&e.type==="mousemove"?(Xl=e.screenX-Ti.screenX,Ql=e.screenY-Ti.screenY):Ql=Xl=0,Ti=e),Xl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),mf=Lt(hl),xw=He({},hl,{dataTransfer:0}),vw=Lt(xw),ww=He({},_o,{relatedTarget:0}),Zl=Lt(ww),kw=He({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),bw=Lt(kw),Ew=He({},xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sw=Lt(Ew),Cw=He({},xi,{data:0}),gf=Lt(Cw),Nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_w={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_w[e])?!!t[e]:!1}function Rc(){return Tw}var $w=He({},_o,{key:function(e){if(e.key){var t=Nw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(e){return e.type==="keypress"?hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iw=Lt($w),Lw=He({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yf=Lt(Lw),Aw=He({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),Rw=Lt(Aw),Ow=He({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mw=Lt(Ow),Pw=He({},hl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dw=Lt(Pw),zw=[9,13,27,32],Oc=Sn&&"CompositionEvent"in window,Gi=null;Sn&&"documentMode"in document&&(Gi=document.documentMode);var Fw=Sn&&"TextEvent"in window&&!Gi,Im=Sn&&(!Oc||Gi&&8<Gi&&11>=Gi),xf=" ",vf=!1;function Lm(e,t){switch(e){case"keyup":return zw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Am(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function Bw(e,t){switch(e){case"compositionend":return Am(t);case"keypress":return t.which!==32?null:(vf=!0,xf);case"textInput":return e=t.data,e===xf&&vf?null:e;default:return null}}function Uw(e,t){if(Br)return e==="compositionend"||!Oc&&Lm(e,t)?(e=$m(),ps=Lc=Hn=null,Br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Im&&t.locale!=="ko"?null:t.data;default:return null}}var Hw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hw[e.type]:t==="textarea"}function Rm(e,t,n,r){dm(r),t=Ms(t,"onChange"),0<t.length&&(n=new Ac("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ki=null,fo=null;function Ww(e){Vm(e,0)}function ml(e){var t=Wr(e);if(im(t))return e}function Vw(e,t){if(e==="change")return t}var Om=!1;if(Sn){var Jl;if(Sn){var ea="oninput"in document;if(!ea){var kf=document.createElement("div");kf.setAttribute("oninput","return;"),ea=typeof kf.oninput=="function"}Jl=ea}else Jl=!1;Om=Jl&&(!document.documentMode||9<document.documentMode)}function bf(){Ki&&(Ki.detachEvent("onpropertychange",Mm),fo=Ki=null)}function Mm(e){if(e.propertyName==="value"&&ml(fo)){var t=[];Rm(t,fo,e,jc(e)),mm(Ww,t)}}function Gw(e,t,n){e==="focusin"?(bf(),Ki=t,fo=n,Ki.attachEvent("onpropertychange",Mm)):e==="focusout"&&bf()}function Kw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(fo)}function qw(e,t){if(e==="click")return ml(t)}function Yw(e,t){if(e==="input"||e==="change")return ml(t)}function Xw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rn=typeof Object.is=="function"?Object.is:Xw;function po(e,t){if(rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!qa.call(t,i)||!rn(e[i],t[i]))return!1}return!0}function Ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sf(e,t){var n=Ef(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ef(n)}}function Pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=Ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ts(e.document)}return t}function Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Qw(e){var t=Dm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pm(n.ownerDocument.documentElement,n)){if(r!==null&&Mc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Sf(n,o);var s=Sf(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Zw=Sn&&"documentMode"in document&&11>=document.documentMode,Ur=null,pu=null,qi=null,hu=!1;function Cf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hu||Ur==null||Ur!==Ts(r)||(r=Ur,"selectionStart"in r&&Mc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qi&&po(qi,r)||(qi=r,r=Ms(pu,"onSelect"),0<r.length&&(t=new Ac("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Go(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hr={animationend:Go("Animation","AnimationEnd"),animationiteration:Go("Animation","AnimationIteration"),animationstart:Go("Animation","AnimationStart"),transitionend:Go("Transition","TransitionEnd")},ta={},zm={};Sn&&(zm=document.createElement("div").style,"AnimationEvent"in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),"TransitionEvent"in window||delete Hr.transitionend.transition);function gl(e){if(ta[e])return ta[e];if(!Hr[e])return e;var t=Hr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zm)return ta[e]=t[n];return e}var Fm=gl("animationend"),Bm=gl("animationiteration"),Um=gl("animationstart"),Hm=gl("transitionend"),Wm=new Map,Nf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rr(e,t){Wm.set(e,t),$r(t,[e])}for(var na=0;na<Nf.length;na++){var ra=Nf[na],Jw=ra.toLowerCase(),ek=ra[0].toUpperCase()+ra.slice(1);rr(Jw,"on"+ek)}rr(Fm,"onAnimationEnd");rr(Bm,"onAnimationIteration");rr(Um,"onAnimationStart");rr("dblclick","onDoubleClick");rr("focusin","onFocus");rr("focusout","onBlur");rr(Hm,"onTransitionEnd");li("onMouseEnter",["mouseout","mouseover"]);li("onMouseLeave",["mouseout","mouseover"]);li("onPointerEnter",["pointerout","pointerover"]);li("onPointerLeave",["pointerout","pointerover"]);$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$r("onBeforeInput",["compositionend","keypress","textInput","paste"]);$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ui="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ui));function jf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Jv(r,t,void 0,e),e.currentTarget=null}function Vm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;jf(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;jf(i,l,u),o=a}}}if(Is)throw e=uu,Is=!1,uu=null,e}function Pe(e,t){var n=t[vu];n===void 0&&(n=t[vu]=new Set);var r=e+"__bubble";n.has(r)||(Gm(t,e,2,!1),n.add(r))}function ia(e,t,n){var r=0;t&&(r|=4),Gm(n,e,r,t)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function ho(e){if(!e[Ko]){e[Ko]=!0,Jh.forEach(function(n){n!=="selectionchange"&&(tk.has(n)||ia(n,!1,e),ia(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ko]||(t[Ko]=!0,ia("selectionchange",!1,t))}}function Gm(e,t,n,r){switch(Tm(t)){case 1:var i=mw;break;case 4:i=gw;break;default:i=Ic}n=i.bind(null,t,n,e),i=void 0,!au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function oa(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=hr(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}mm(function(){var u=o,c=jc(n),d=[];e:{var h=Wm.get(e);if(h!==void 0){var p=Ac,y=e;switch(e){case"keypress":if(hs(n)===0)break e;case"keydown":case"keyup":p=Iw;break;case"focusin":y="focus",p=Zl;break;case"focusout":y="blur",p=Zl;break;case"beforeblur":case"afterblur":p=Zl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=vw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Rw;break;case Fm:case Bm:case Um:p=bw;break;case Hm:p=Mw;break;case"scroll":p=yw;break;case"wheel":p=Dw;break;case"copy":case"cut":case"paste":p=Sw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=yf}var x=(t&4)!==0,E=!x&&e==="scroll",v=x?h!==null?h+"Capture":null:h;x=[];for(var m=u,g;m!==null;){g=m;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,v!==null&&(w=lo(m,v),w!=null&&x.push(mo(m,w,g)))),E)break;m=m.return}0<x.length&&(h=new p(h,y,null,n,c),d.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==su&&(y=n.relatedTarget||n.fromElement)&&(hr(y)||y[Cn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?hr(y):null,y!==null&&(E=Ir(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(x=mf,w="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(x=yf,w="onPointerLeave",v="onPointerEnter",m="pointer"),E=p==null?h:Wr(p),g=y==null?h:Wr(y),h=new x(w,m+"leave",p,n,c),h.target=E,h.relatedTarget=g,w=null,hr(c)===u&&(x=new x(v,m+"enter",y,n,c),x.target=g,x.relatedTarget=E,w=x),E=w,p&&y)t:{for(x=p,v=y,m=0,g=x;g;g=Or(g))m++;for(g=0,w=v;w;w=Or(w))g++;for(;0<m-g;)x=Or(x),m--;for(;0<g-m;)v=Or(v),g--;for(;m--;){if(x===v||v!==null&&x===v.alternate)break t;x=Or(x),v=Or(v)}x=null}else x=null;p!==null&&_f(d,h,p,x,!1),y!==null&&E!==null&&_f(d,E,y,x,!0)}}e:{if(h=u?Wr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var C=Vw;else if(wf(h))if(Om)C=Yw;else{C=Kw;var S=Gw}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=qw);if(C&&(C=C(e,u))){Rm(d,C,n,c);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&tu(h,"number",h.value)}switch(S=u?Wr(u):window,e){case"focusin":(wf(S)||S.contentEditable==="true")&&(Ur=S,pu=u,qi=null);break;case"focusout":qi=pu=Ur=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Cf(d,n,c);break;case"selectionchange":if(Zw)break;case"keydown":case"keyup":Cf(d,n,c)}var $;if(Oc)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Br?Lm(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Im&&n.locale!=="ko"&&(Br||O!=="onCompositionStart"?O==="onCompositionEnd"&&Br&&($=$m()):(Hn=c,Lc="value"in Hn?Hn.value:Hn.textContent,Br=!0)),S=Ms(u,O),0<S.length&&(O=new gf(O,e,null,n,c),d.push({event:O,listeners:S}),$?O.data=$:($=Am(n),$!==null&&(O.data=$)))),($=Fw?Bw(e,n):Uw(e,n))&&(u=Ms(u,"onBeforeInput"),0<u.length&&(c=new gf("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=$))}Vm(d,t)})}function mo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ms(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=lo(e,n),o!=null&&r.unshift(mo(e,o,i)),o=lo(e,t),o!=null&&r.push(mo(e,o,i))),e=e.return}return r}function Or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _f(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=lo(n,o),a!=null&&s.unshift(mo(n,a,l))):i||(a=lo(n,o),a!=null&&s.push(mo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var nk=/\r\n?/g,rk=/\u0000|\uFFFD/g;function Tf(e){return(typeof e=="string"?e:""+e).replace(nk,`
|
|
38
|
-
`).replace(rk,"")}function qo(e,t,n){if(t=Tf(t),Tf(e)!==t&&n)throw Error(le(425))}function Ps(){}var mu=null,gu=null;function yu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xu=typeof setTimeout=="function"?setTimeout:void 0,ik=typeof clearTimeout=="function"?clearTimeout:void 0,$f=typeof Promise=="function"?Promise:void 0,ok=typeof queueMicrotask=="function"?queueMicrotask:typeof $f<"u"?function(e){return $f.resolve(null).then(e).catch(sk)}:xu;function sk(e){setTimeout(function(){throw e})}function sa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),co(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);co(t)}function qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function If(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vi=Math.random().toString(36).slice(2),dn="__reactFiber$"+vi,go="__reactProps$"+vi,Cn="__reactContainer$"+vi,vu="__reactEvents$"+vi,lk="__reactListeners$"+vi,ak="__reactHandles$"+vi;function hr(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=If(e);e!==null;){if(n=e[dn])return n;e=If(e)}return t}e=n,n=e.parentNode}return null}function To(e){return e=e[dn]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function yl(e){return e[go]||null}var wu=[],Vr=-1;function ir(e){return{current:e}}function De(e){0>Vr||(e.current=wu[Vr],wu[Vr]=null,Vr--)}function Me(e,t){Vr++,wu[Vr]=e.current,e.current=t}var er={},ct=ir(er),kt=ir(!1),br=er;function ai(e,t){var n=e.type.contextTypes;if(!n)return er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bt(e){return e=e.childContextTypes,e!=null}function Ds(){De(kt),De(ct)}function Lf(e,t,n){if(ct.current!==er)throw Error(le(168));Me(ct,t),Me(kt,n)}function Km(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(le(108,Gv(e)||"Unknown",i));return He({},n,r)}function zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,br=ct.current,Me(ct,e),Me(kt,kt.current),!0}function Af(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=Km(e,t,br),r.__reactInternalMemoizedMergedChildContext=e,De(kt),De(ct),Me(ct,e)):De(kt),Me(kt,n)}var vn=null,xl=!1,la=!1;function qm(e){vn===null?vn=[e]:vn.push(e)}function uk(e){xl=!0,qm(e)}function or(){if(!la&&vn!==null){la=!0;var e=0,t=Te;try{var n=vn;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vn=null,xl=!1}catch(i){throw vn!==null&&(vn=vn.slice(e+1)),vm(_c,or),i}finally{Te=t,la=!1}}return null}var Gr=[],Kr=0,Fs=null,Bs=0,Bt=[],Ut=0,Er=null,kn=1,bn="";function cr(e,t){Gr[Kr++]=Bs,Gr[Kr++]=Fs,Fs=e,Bs=t}function Ym(e,t,n){Bt[Ut++]=kn,Bt[Ut++]=bn,Bt[Ut++]=Er,Er=e;var r=kn;e=bn;var i=32-Jt(r)-1;r&=~(1<<i),n+=1;var o=32-Jt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,kn=1<<32-Jt(t)+i|n<<i|r,bn=o+e}else kn=1<<o|n<<i|r,bn=e}function Pc(e){e.return!==null&&(cr(e,1),Ym(e,1,0))}function Dc(e){for(;e===Fs;)Fs=Gr[--Kr],Gr[Kr]=null,Bs=Gr[--Kr],Gr[Kr]=null;for(;e===Er;)Er=Bt[--Ut],Bt[Ut]=null,bn=Bt[--Ut],Bt[Ut]=null,kn=Bt[--Ut],Bt[Ut]=null}var Tt=null,_t=null,ze=!1,Zt=null;function Xm(e,t){var n=Wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,_t=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,_t=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Er!==null?{id:kn,overflow:bn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tt=e,_t=null,!0):!1;default:return!1}}function ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bu(e){if(ze){var t=_t;if(t){var n=t;if(!Rf(e,t)){if(ku(e))throw Error(le(418));t=qn(n.nextSibling);var r=Tt;t&&Rf(e,t)?Xm(r,n):(e.flags=e.flags&-4097|2,ze=!1,Tt=e)}}else{if(ku(e))throw Error(le(418));e.flags=e.flags&-4097|2,ze=!1,Tt=e}}}function Of(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function Yo(e){if(e!==Tt)return!1;if(!ze)return Of(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yu(e.type,e.memoizedProps)),t&&(t=_t)){if(ku(e))throw Qm(),Error(le(418));for(;t;)Xm(e,t),t=qn(t.nextSibling)}if(Of(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(le(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_t=qn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_t=null}}else _t=Tt?qn(e.stateNode.nextSibling):null;return!0}function Qm(){for(var e=_t;e;)e=qn(e.nextSibling)}function ui(){_t=Tt=null,ze=!1}function zc(e){Zt===null?Zt=[e]:Zt.push(e)}var ck=Tn.ReactCurrentBatchConfig;function $i(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(le(309));var r=n.stateNode}if(!r)throw Error(le(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(le(284));if(!n._owner)throw Error(le(290,e))}return e}function Xo(e,t){throw e=Object.prototype.toString.call(t),Error(le(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mf(e){var t=e._init;return t(e._payload)}function Zm(e){function t(v,m){if(e){var g=v.deletions;g===null?(v.deletions=[m],v.flags|=16):g.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function i(v,m){return v=Zn(v,m),v.index=0,v.sibling=null,v}function o(v,m,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<m?(v.flags|=2,m):g):(v.flags|=2,m)):(v.flags|=1048576,m)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,g,w){return m===null||m.tag!==6?(m=ha(g,v.mode,w),m.return=v,m):(m=i(m,g),m.return=v,m)}function a(v,m,g,w){var C=g.type;return C===Fr?c(v,m,g.props.children,w,g.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dn&&Mf(C)===m.type)?(w=i(m,g.props),w.ref=$i(v,m,g),w.return=v,w):(w=ks(g.type,g.key,g.props,null,v.mode,w),w.ref=$i(v,m,g),w.return=v,w)}function u(v,m,g,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=ma(g,v.mode,w),m.return=v,m):(m=i(m,g.children||[]),m.return=v,m)}function c(v,m,g,w,C){return m===null||m.tag!==7?(m=vr(g,v.mode,w,C),m.return=v,m):(m=i(m,g),m.return=v,m)}function d(v,m,g){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ha(""+m,v.mode,g),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case zo:return g=ks(m.type,m.key,m.props,null,v.mode,g),g.ref=$i(v,null,m),g.return=v,g;case zr:return m=ma(m,v.mode,g),m.return=v,m;case Dn:var w=m._init;return d(v,w(m._payload),g)}if(Fi(m)||Ci(m))return m=vr(m,v.mode,g,null),m.return=v,m;Xo(v,m)}return null}function h(v,m,g,w){var C=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return C!==null?null:l(v,m,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zo:return g.key===C?a(v,m,g,w):null;case zr:return g.key===C?u(v,m,g,w):null;case Dn:return C=g._init,h(v,m,C(g._payload),w)}if(Fi(g)||Ci(g))return C!==null?null:c(v,m,g,w,null);Xo(v,g)}return null}function p(v,m,g,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get(g)||null,l(m,v,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zo:return v=v.get(w.key===null?g:w.key)||null,a(m,v,w,C);case zr:return v=v.get(w.key===null?g:w.key)||null,u(m,v,w,C);case Dn:var S=w._init;return p(v,m,g,S(w._payload),C)}if(Fi(w)||Ci(w))return v=v.get(g)||null,c(m,v,w,C,null);Xo(m,w)}return null}function y(v,m,g,w){for(var C=null,S=null,$=m,O=m=0,N=null;$!==null&&O<g.length;O++){$.index>O?(N=$,$=null):N=$.sibling;var k=h(v,$,g[O],w);if(k===null){$===null&&($=N);break}e&&$&&k.alternate===null&&t(v,$),m=o(k,m,O),S===null?C=k:S.sibling=k,S=k,$=N}if(O===g.length)return n(v,$),ze&&cr(v,O),C;if($===null){for(;O<g.length;O++)$=d(v,g[O],w),$!==null&&(m=o($,m,O),S===null?C=$:S.sibling=$,S=$);return ze&&cr(v,O),C}for($=r(v,$);O<g.length;O++)N=p($,v,O,g[O],w),N!==null&&(e&&N.alternate!==null&&$.delete(N.key===null?O:N.key),m=o(N,m,O),S===null?C=N:S.sibling=N,S=N);return e&&$.forEach(function(L){return t(v,L)}),ze&&cr(v,O),C}function x(v,m,g,w){var C=Ci(g);if(typeof C!="function")throw Error(le(150));if(g=C.call(g),g==null)throw Error(le(151));for(var S=C=null,$=m,O=m=0,N=null,k=g.next();$!==null&&!k.done;O++,k=g.next()){$.index>O?(N=$,$=null):N=$.sibling;var L=h(v,$,k.value,w);if(L===null){$===null&&($=N);break}e&&$&&L.alternate===null&&t(v,$),m=o(L,m,O),S===null?C=L:S.sibling=L,S=L,$=N}if(k.done)return n(v,$),ze&&cr(v,O),C;if($===null){for(;!k.done;O++,k=g.next())k=d(v,k.value,w),k!==null&&(m=o(k,m,O),S===null?C=k:S.sibling=k,S=k);return ze&&cr(v,O),C}for($=r(v,$);!k.done;O++,k=g.next())k=p($,v,O,k.value,w),k!==null&&(e&&k.alternate!==null&&$.delete(k.key===null?O:k.key),m=o(k,m,O),S===null?C=k:S.sibling=k,S=k);return e&&$.forEach(function(_){return t(v,_)}),ze&&cr(v,O),C}function E(v,m,g,w){if(typeof g=="object"&&g!==null&&g.type===Fr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case zo:e:{for(var C=g.key,S=m;S!==null;){if(S.key===C){if(C=g.type,C===Fr){if(S.tag===7){n(v,S.sibling),m=i(S,g.props.children),m.return=v,v=m;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Dn&&Mf(C)===S.type){n(v,S.sibling),m=i(S,g.props),m.ref=$i(v,S,g),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.sibling}g.type===Fr?(m=vr(g.props.children,v.mode,w,g.key),m.return=v,v=m):(w=ks(g.type,g.key,g.props,null,v.mode,w),w.ref=$i(v,m,g),w.return=v,v=w)}return s(v);case zr:e:{for(S=g.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(v,m.sibling),m=i(m,g.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=ma(g,v.mode,w),m.return=v,v=m}return s(v);case Dn:return S=g._init,E(v,m,S(g._payload),w)}if(Fi(g))return y(v,m,g,w);if(Ci(g))return x(v,m,g,w);Xo(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(v,m.sibling),m=i(m,g),m.return=v,v=m):(n(v,m),m=ha(g,v.mode,w),m.return=v,v=m),s(v)):n(v,m)}return E}var ci=Zm(!0),Jm=Zm(!1),Us=ir(null),Hs=null,qr=null,Fc=null;function Bc(){Fc=qr=Hs=null}function Uc(e){var t=Us.current;De(Us),e._currentValue=t}function Eu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ni(e,t){Hs=e,Fc=qr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(Fc!==e)if(e={context:e,memoizedValue:t,next:null},qr===null){if(Hs===null)throw Error(le(308));qr=e,Hs.dependencies={lanes:0,firstContext:e}}else qr=qr.next=e;return t}var mr=null;function Hc(e){mr===null?mr=[e]:mr.push(e)}function eg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Hc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Nn(e,r)}function Nn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zn=!1;function Wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function En(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Nn(e,n)}return i=r.interleaved,i===null?(t.next=t,Hc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Nn(e,n)}function ms(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tc(e,n)}}function Pf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ws(e,t,n,r){var i=e.updateQueue;zn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,c=u=a=null,l=o;do{var h=l.lane,p=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(h=t,p=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){d=y.call(p,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(p,d,h):y,h==null)break e;d=He({},d,h);break e;case 2:zn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,a=d):c=c.next=p,s|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Cr|=s,e.lanes=s,e.memoizedState=d}}function Df(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(le(191,i));i.call(r)}}}var $o={},pn=ir($o),yo=ir($o),xo=ir($o);function gr(e){if(e===$o)throw Error(le(174));return e}function Vc(e,t){switch(Me(xo,t),Me(yo,e),Me(pn,$o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ru(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ru(t,e)}De(pn),Me(pn,t)}function di(){De(pn),De(yo),De(xo)}function ng(e){gr(xo.current);var t=gr(pn.current),n=ru(t,e.type);t!==n&&(Me(yo,e),Me(pn,n))}function Gc(e){yo.current===e&&(De(pn),De(yo))}var Be=ir(0);function Vs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=[];function Kc(){for(var e=0;e<aa.length;e++)aa[e]._workInProgressVersionPrimary=null;aa.length=0}var gs=Tn.ReactCurrentDispatcher,ua=Tn.ReactCurrentBatchConfig,Sr=0,Ue=null,Ye=null,Ze=null,Gs=!1,Yi=!1,vo=0,dk=0;function lt(){throw Error(le(321))}function qc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rn(e[n],t[n]))return!1;return!0}function Yc(e,t,n,r,i,o){if(Sr=o,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gs.current=e===null||e.memoizedState===null?mk:gk,e=n(r,i),Yi){o=0;do{if(Yi=!1,vo=0,25<=o)throw Error(le(301));o+=1,Ze=Ye=null,t.updateQueue=null,gs.current=yk,e=n(r,i)}while(Yi)}if(gs.current=Ks,t=Ye!==null&&Ye.next!==null,Sr=0,Ze=Ye=Ue=null,Gs=!1,t)throw Error(le(300));return e}function Xc(){var e=vo!==0;return vo=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?Ue.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Kt(){if(Ye===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Ze===null?Ue.memoizedState:Ze.next;if(t!==null)Ze=t,Ye=e;else{if(e===null)throw Error(le(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Ze===null?Ue.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function wo(e,t){return typeof t=="function"?t(e):t}function ca(e){var t=Kt(),n=t.queue;if(n===null)throw Error(le(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((Sr&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,Ue.lanes|=c,Cr|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,rn(r,t.memoizedState)||(wt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ue.lanes|=o,Cr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function da(e){var t=Kt(),n=t.queue;if(n===null)throw Error(le(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);rn(o,t.memoizedState)||(wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function rg(){}function ig(e,t){var n=Ue,r=Kt(),i=t(),o=!rn(r.memoizedState,i);if(o&&(r.memoizedState=i,wt=!0),r=r.queue,Qc(lg.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(n.flags|=2048,ko(9,sg.bind(null,n,r,i,t),void 0,null),Je===null)throw Error(le(349));Sr&30||og(n,t,i)}return i}function og(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sg(e,t,n,r){t.value=n,t.getSnapshot=r,ag(t)&&ug(e)}function lg(e,t,n){return n(function(){ag(t)&&ug(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rn(e,n)}catch{return!0}}function ug(e){var t=Nn(e,1);t!==null&&en(t,e,1,-1)}function zf(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:e},t.queue=e,e=e.dispatch=hk.bind(null,Ue,e),[t.memoizedState,e]}function ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function cg(){return Kt().memoizedState}function ys(e,t,n,r){var i=un();Ue.flags|=e,i.memoizedState=ko(1|t,n,void 0,r===void 0?null:r)}function vl(e,t,n,r){var i=Kt();r=r===void 0?null:r;var o=void 0;if(Ye!==null){var s=Ye.memoizedState;if(o=s.destroy,r!==null&&qc(r,s.deps)){i.memoizedState=ko(t,n,o,r);return}}Ue.flags|=e,i.memoizedState=ko(1|t,n,o,r)}function Ff(e,t){return ys(8390656,8,e,t)}function Qc(e,t){return vl(2048,8,e,t)}function dg(e,t){return vl(4,2,e,t)}function fg(e,t){return vl(4,4,e,t)}function pg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hg(e,t,n){return n=n!=null?n.concat([e]):null,vl(4,4,pg.bind(null,t,e),n)}function Zc(){}function mg(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gg(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yg(e,t,n){return Sr&21?(rn(n,t)||(n=bm(),Ue.lanes|=n,Cr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=n)}function fk(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var r=ua.transition;ua.transition={};try{e(!1),t()}finally{Te=n,ua.transition=r}}function xg(){return Kt().memoizedState}function pk(e,t,n){var r=Qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vg(e))wg(t,n);else if(n=eg(e,t,n,r),n!==null){var i=mt();en(n,e,r,i),kg(n,t,r)}}function hk(e,t,n){var r=Qn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vg(e))wg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,rn(l,s)){var a=t.interleaved;a===null?(i.next=i,Hc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=eg(e,t,i,r),n!==null&&(i=mt(),en(n,e,r,i),kg(n,t,r))}}function vg(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function wg(e,t){Yi=Gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tc(e,n)}}var Ks={readContext:Gt,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},mk={readContext:Gt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Ff,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ys(4194308,4,pg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return ys(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pk.bind(null,Ue,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:zf,useDebugValue:Zc,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=zf(!1),t=e[0];return e=fk.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ue,i=un();if(ze){if(n===void 0)throw Error(le(407));n=n()}else{if(n=t(),Je===null)throw Error(le(349));Sr&30||og(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ff(lg.bind(null,r,o,e),[e]),r.flags|=2048,ko(9,sg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=un(),t=Je.identifierPrefix;if(ze){var n=bn,r=kn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dk++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gk={readContext:Gt,useCallback:mg,useContext:Gt,useEffect:Qc,useImperativeHandle:hg,useInsertionEffect:dg,useLayoutEffect:fg,useMemo:gg,useReducer:ca,useRef:cg,useState:function(){return ca(wo)},useDebugValue:Zc,useDeferredValue:function(e){var t=Kt();return yg(t,Ye.memoizedState,e)},useTransition:function(){var e=ca(wo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:rg,useSyncExternalStore:ig,useId:xg,unstable_isNewReconciler:!1},yk={readContext:Gt,useCallback:mg,useContext:Gt,useEffect:Qc,useImperativeHandle:hg,useInsertionEffect:dg,useLayoutEffect:fg,useMemo:gg,useReducer:da,useRef:cg,useState:function(){return da(wo)},useDebugValue:Zc,useDeferredValue:function(e){var t=Kt();return Ye===null?t.memoizedState=e:yg(t,Ye.memoizedState,e)},useTransition:function(){var e=da(wo)[0],t=Kt().memoizedState;return[e,t]},useMutableSource:rg,useSyncExternalStore:ig,useId:xg,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Su(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:He({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wl={isMounted:function(e){return(e=e._reactInternals)?Ir(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mt(),i=Qn(e),o=En(r,i);o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,i),t!==null&&(en(t,e,i,r),ms(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mt(),i=Qn(e),o=En(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,i),t!==null&&(en(t,e,i,r),ms(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mt(),r=Qn(e),i=En(n,r);i.tag=2,t!=null&&(i.callback=t),t=Yn(e,i,r),t!==null&&(en(t,e,r,n),ms(t,e,r))}};function Bf(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!po(n,r)||!po(i,o):!0}function bg(e,t,n){var r=!1,i=er,o=t.contextType;return typeof o=="object"&&o!==null?o=Gt(o):(i=bt(t)?br:ct.current,r=t.contextTypes,o=(r=r!=null)?ai(e,i):er),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Uf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wl.enqueueReplaceState(t,t.state,null)}function Cu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Wc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Gt(o):(o=bt(t)?br:ct.current,i.context=ai(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Su(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&wl.enqueueReplaceState(i,i.state,null),Ws(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fi(e,t){try{var n="",r=t;do n+=Vv(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function fa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xk=typeof WeakMap=="function"?WeakMap:Map;function Eg(e,t,n){n=En(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Mu=r),Nu(e,t)},n}function Sg(e,t,n){n=En(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Nu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Nu(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xk;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Lk.bind(null,e,t,n),t.then(e,e))}function Wf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=En(-1,1),t.tag=2,Yn(n,t,1))),n.lanes|=1),e)}var vk=Tn.ReactCurrentOwner,wt=!1;function ht(e,t,n,r){t.child=e===null?Jm(t,null,n,r):ci(t,e.child,n,r)}function Gf(e,t,n,r,i){n=n.render;var o=t.ref;return ni(t,i),r=Yc(e,t,n,r,o,i),n=Xc(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jn(e,t,i)):(ze&&n&&Pc(t),t.flags|=1,ht(e,t,r,i),t.child)}function Kf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!sd(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Cg(e,t,o,r,i)):(e=ks(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:po,n(s,r)&&e.ref===t.ref)return jn(e,t,i)}return t.flags|=1,e=Zn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Cg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(po(o,r)&&e.ref===t.ref)if(wt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wt=!0);else return t.lanes=e.lanes,jn(e,t,i)}return ju(e,t,n,r,i)}function Ng(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Me(Xr,jt),jt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Me(Xr,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Me(Xr,jt),jt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Me(Xr,jt),jt|=r;return ht(e,t,i,n),t.child}function jg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ju(e,t,n,r,i){var o=bt(n)?br:ct.current;return o=ai(t,o),ni(t,i),n=Yc(e,t,n,r,o,i),r=Xc(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,jn(e,t,i)):(ze&&r&&Pc(t),t.flags|=1,ht(e,t,n,i),t.child)}function qf(e,t,n,r,i){if(bt(n)){var o=!0;zs(t)}else o=!1;if(ni(t,i),t.stateNode===null)xs(e,t),bg(t,n,r),Cu(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Gt(u):(u=bt(n)?br:ct.current,u=ai(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Uf(t,s,r,u),zn=!1;var h=t.memoizedState;s.state=h,Ws(t,r,s,i),a=t.memoizedState,l!==r||h!==a||kt.current||zn?(typeof c=="function"&&(Su(t,n,c,r),a=t.memoizedState),(l=zn||Bf(t,n,l,r,h,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,tg(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Yt(t.type,l),s.props=u,d=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Gt(a):(a=bt(n)?br:ct.current,a=ai(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||h!==a)&&Uf(t,s,r,a),zn=!1,h=t.memoizedState,s.state=h,Ws(t,r,s,i);var y=t.memoizedState;l!==d||h!==y||kt.current||zn?(typeof p=="function"&&(Su(t,n,p,r),y=t.memoizedState),(u=zn||Bf(t,n,u,r,h,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _u(e,t,n,r,o,i)}function _u(e,t,n,r,i,o){jg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Af(t,n,!1),jn(e,t,o);r=t.stateNode,vk.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ci(t,e.child,null,o),t.child=ci(t,null,l,o)):ht(e,t,l,o),t.memoizedState=r.state,i&&Af(t,n,!0),t.child}function _g(e){var t=e.stateNode;t.pendingContext?Lf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lf(e,t.context,!1),Vc(e,t.containerInfo)}function Yf(e,t,n,r,i){return ui(),zc(i),t.flags|=256,ht(e,t,n,r),t.child}var Tu={dehydrated:null,treeContext:null,retryLane:0};function $u(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tg(e,t,n){var r=t.pendingProps,i=Be.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Me(Be,i&1),e===null)return bu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=El(s,r,0,null),e=vr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=$u(n),t.memoizedState=Tu,e):Jc(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return wk(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Zn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Zn(l,o):(o=vr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?$u(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Tu,r}return o=e.child,e=o.sibling,r=Zn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Jc(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qo(e,t,n,r){return r!==null&&zc(r),ci(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wk(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=fa(Error(le(422))),Qo(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=El({mode:"visible",children:r.children},i,0,null),o=vr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ci(t,e.child,null,s),t.child.memoizedState=$u(s),t.memoizedState=Tu,o);if(!(t.mode&1))return Qo(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(le(419)),r=fa(o,r,void 0),Qo(e,t,s,r)}if(l=(s&e.childLanes)!==0,wt||l){if(r=Je,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Nn(e,i),en(r,e,i,-1))}return od(),r=fa(Error(le(421))),Qo(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ak.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,_t=qn(i.nextSibling),Tt=t,ze=!0,Zt=null,e!==null&&(Bt[Ut++]=kn,Bt[Ut++]=bn,Bt[Ut++]=Er,kn=e.id,bn=e.overflow,Er=t),t=Jc(t,r.children),t.flags|=4096,t)}function Xf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Eu(e.return,t,n)}function pa(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $g(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ht(e,t,r.children,n),r=Be.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xf(e,n,t);else if(e.tag===19)Xf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Me(Be,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Vs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),pa(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Vs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}pa(t,!0,n,null,o);break;case"together":pa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(le(153));if(t.child!==null){for(e=t.child,n=Zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kk(e,t,n){switch(t.tag){case 3:_g(t),ui();break;case 5:ng(t);break;case 1:bt(t.type)&&zs(t);break;case 4:Vc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Me(Us,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Me(Be,Be.current&1),t.flags|=128,null):n&t.child.childLanes?Tg(e,t,n):(Me(Be,Be.current&1),e=jn(e,t,n),e!==null?e.sibling:null);Me(Be,Be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $g(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Me(Be,Be.current),r)break;return null;case 22:case 23:return t.lanes=0,Ng(e,t,n)}return jn(e,t,n)}var Ig,Iu,Lg,Ag;Ig=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Iu=function(){};Lg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gr(pn.current);var o=null;switch(n){case"input":i=Ja(e,i),r=Ja(e,r),o=[];break;case"select":i=He({},i,{value:void 0}),r=He({},r,{value:void 0}),o=[];break;case"textarea":i=nu(e,i),r=nu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ps)}iu(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Pe("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Ag=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ii(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bk(e,t,n){var r=t.pendingProps;switch(Dc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return bt(t.type)&&Ds(),at(t),null;case 3:return r=t.stateNode,di(),De(kt),De(ct),Kc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zt!==null&&(zu(Zt),Zt=null))),Iu(e,t),at(t),null;case 5:Gc(t);var i=gr(xo.current);if(n=t.type,e!==null&&t.stateNode!=null)Lg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(le(166));return at(t),null}if(e=gr(pn.current),Yo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dn]=t,r[go]=o,e=(t.mode&1)!==0,n){case"dialog":Pe("cancel",r),Pe("close",r);break;case"iframe":case"object":case"embed":Pe("load",r);break;case"video":case"audio":for(i=0;i<Ui.length;i++)Pe(Ui[i],r);break;case"source":Pe("error",r);break;case"img":case"image":case"link":Pe("error",r),Pe("load",r);break;case"details":Pe("toggle",r);break;case"input":of(r,o),Pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Pe("invalid",r);break;case"textarea":lf(r,o),Pe("invalid",r)}iu(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&qo(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&qo(r.textContent,l,e),i=["children",""+l]):oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Pe("scroll",r)}switch(n){case"input":Fo(r),sf(r,o,!0);break;case"textarea":Fo(r),af(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ps)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[dn]=t,e[go]=r,Ig(e,t,!1,!1),t.stateNode=e;e:{switch(s=ou(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),i=r;break;case"iframe":case"object":case"embed":Pe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ui.length;i++)Pe(Ui[i],e);i=r;break;case"source":Pe("error",e),i=r;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),i=r;break;case"details":Pe("toggle",e),i=r;break;case"input":of(e,r),i=Ja(e,r),Pe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=He({},r,{value:void 0}),Pe("invalid",e);break;case"textarea":lf(e,r),i=nu(e,r),Pe("invalid",e);break;default:i=r}iu(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?cm(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&am(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&so(e,a):typeof a=="number"&&so(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(oo.hasOwnProperty(o)?a!=null&&o==="onScroll"&&Pe("scroll",e):a!=null&&Ec(e,o,a,s))}switch(n){case"input":Fo(e),sf(e,r,!1);break;case"textarea":Fo(e),af(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Zr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ps)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return at(t),null;case 6:if(e&&t.stateNode!=null)Ag(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(le(166));if(n=gr(xo.current),gr(pn.current),Yo(t)){if(r=t.stateNode,n=t.memoizedProps,r[dn]=t,(o=r.nodeValue!==n)&&(e=Tt,e!==null))switch(e.tag){case 3:qo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dn]=t,t.stateNode=r}return at(t),null;case 13:if(De(Be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&_t!==null&&t.mode&1&&!(t.flags&128))Qm(),ui(),t.flags|=98560,o=!1;else if(o=Yo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(le(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(le(317));o[dn]=t}else ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),o=!1}else Zt!==null&&(zu(Zt),Zt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Be.current&1?Xe===0&&(Xe=3):od())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return di(),Iu(e,t),e===null&&ho(t.stateNode.containerInfo),at(t),null;case 10:return Uc(t.type._context),at(t),null;case 17:return bt(t.type)&&Ds(),at(t),null;case 19:if(De(Be),o=t.memoizedState,o===null)return at(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Ii(o,!1);else{if(Xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Vs(e),s!==null){for(t.flags|=128,Ii(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Me(Be,Be.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ve()>pi&&(t.flags|=128,r=!0,Ii(o,!1),t.lanes=4194304)}else{if(!r)if(e=Vs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ii(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ze)return at(t),null}else 2*Ve()-o.renderingStartTime>pi&&n!==1073741824&&(t.flags|=128,r=!0,Ii(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,n=Be.current,Me(Be,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return id(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?jt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(le(156,t.tag))}function Ek(e,t){switch(Dc(t),t.tag){case 1:return bt(t.type)&&Ds(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return di(),De(kt),De(ct),Kc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gc(t),null;case 13:if(De(Be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(le(340));ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Be),null;case 4:return di(),null;case 10:return Uc(t.type._context),null;case 22:case 23:return id(),null;case 24:return null;default:return null}}var Zo=!1,ut=!1,Sk=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Yr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){We(e,t,r)}else n.current=null}function Lu(e,t,n){try{n()}catch(r){We(e,t,r)}}var Qf=!1;function Ck(e,t){if(mu=Rs,e=Dm(),Mc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===i&&(l=s),h===o&&++c===r&&(a=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(gu={focusedElem:e,selectionRange:n},Rs=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,E=y.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yt(t.type,x),E);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(w){We(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return y=Qf,Qf=!1,y}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Lu(t,n,o)}i=i.next}while(i!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Au(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rg(e){var t=e.alternate;t!==null&&(e.alternate=null,Rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[go],delete t[vu],delete t[lk],delete t[ak])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Og(e){return e.tag===5||e.tag===3||e.tag===4}function Zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Og(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ps));else if(r!==4&&(e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}function Ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ou(e,t,n),e=e.sibling;e!==null;)Ou(e,t,n),e=e.sibling}var et=null,Xt=!1;function Mn(e,t,n){for(n=n.child;n!==null;)Mg(e,t,n),n=n.sibling}function Mg(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:ut||Yr(n,t);case 6:var r=et,i=Xt;et=null,Mn(e,t,n),et=r,Xt=i,et!==null&&(Xt?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(Xt?(e=et,n=n.stateNode,e.nodeType===8?sa(e.parentNode,n):e.nodeType===1&&sa(e,n),co(e)):sa(et,n.stateNode));break;case 4:r=et,i=Xt,et=n.stateNode.containerInfo,Xt=!0,Mn(e,t,n),et=r,Xt=i;break;case 0:case 11:case 14:case 15:if(!ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Lu(n,t,s),i=i.next}while(i!==r)}Mn(e,t,n);break;case 1:if(!ut&&(Yr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){We(n,t,l)}Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,Mn(e,t,n),ut=r):Mn(e,t,n);break;default:Mn(e,t,n)}}function Jf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sk),t.forEach(function(r){var i=Rk.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:et=l.stateNode,Xt=!1;break e;case 3:et=l.stateNode.containerInfo,Xt=!0;break e;case 4:et=l.stateNode.containerInfo,Xt=!0;break e}l=l.return}if(et===null)throw Error(le(160));Mg(o,s,i),et=null,Xt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){We(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qt(t,e),an(e),r&4){try{Xi(3,e,e.return),kl(3,e)}catch(x){We(e,e.return,x)}try{Xi(5,e,e.return)}catch(x){We(e,e.return,x)}}break;case 1:qt(t,e),an(e),r&512&&n!==null&&Yr(n,n.return);break;case 5:if(qt(t,e),an(e),r&512&&n!==null&&Yr(n,n.return),e.flags&32){var i=e.stateNode;try{so(i,"")}catch(x){We(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&om(i,o),ou(l,s);var u=ou(l,o);for(s=0;s<a.length;s+=2){var c=a[s],d=a[s+1];c==="style"?cm(i,d):c==="dangerouslySetInnerHTML"?am(i,d):c==="children"?so(i,d):Ec(i,c,d,u)}switch(l){case"input":eu(i,o);break;case"textarea":sm(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Zr(i,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?Zr(i,!!o.multiple,o.defaultValue,!0):Zr(i,!!o.multiple,o.multiple?[]:"",!1))}i[go]=o}catch(x){We(e,e.return,x)}}break;case 6:if(qt(t,e),an(e),r&4){if(e.stateNode===null)throw Error(le(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){We(e,e.return,x)}}break;case 3:if(qt(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{co(t.containerInfo)}catch(x){We(e,e.return,x)}break;case 4:qt(t,e),an(e);break;case 13:qt(t,e),an(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(nd=Ve())),r&4&&Jf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(u=ut)||c,qt(t,e),ut=u):qt(t,e),an(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(pe=e,c=e.child;c!==null;){for(d=pe=c;pe!==null;){switch(h=pe,p=h.child,h.tag){case 0:case 11:case 14:case 15:Xi(4,h,h.return);break;case 1:Yr(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){We(r,n,x)}}break;case 5:Yr(h,h.return);break;case 22:if(h.memoizedState!==null){tp(d);continue}}p!==null?(p.return=h,pe=p):tp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=um("display",s))}catch(x){We(e,e.return,x)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(x){We(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:qt(t,e),an(e),r&4&&Jf(e);break;case 21:break;default:qt(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Og(n)){var r=n;break e}n=n.return}throw Error(le(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(so(i,""),r.flags&=-33);var o=Zf(e);Ou(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Zf(e);Ru(e,l,s);break;default:throw Error(le(161))}}catch(a){We(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nk(e,t,n){pe=e,Dg(e)}function Dg(e,t,n){for(var r=(e.mode&1)!==0;pe!==null;){var i=pe,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Zo;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ut;l=Zo;var u=ut;if(Zo=s,(ut=a)&&!u)for(pe=i;pe!==null;)s=pe,a=s.child,s.tag===22&&s.memoizedState!==null?np(i):a!==null?(a.return=s,pe=a):np(i);for(;o!==null;)pe=o,Dg(o),o=o.sibling;pe=i,Zo=l,ut=u}ep(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,pe=o):ep(e)}}function ep(e){for(;pe!==null;){var t=pe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ut||kl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ut)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Df(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Df(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&co(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(le(163))}ut||t.flags&512&&Au(t)}catch(h){We(t,t.return,h)}}if(t===e){pe=null;break}if(n=t.sibling,n!==null){n.return=t.return,pe=n;break}pe=t.return}}function tp(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,pe=n;break}pe=t.return}}function np(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kl(4,t)}catch(a){We(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){We(t,i,a)}}var o=t.return;try{Au(t)}catch(a){We(t,o,a)}break;case 5:var s=t.return;try{Au(t)}catch(a){We(t,s,a)}}}catch(a){We(t,t.return,a)}if(t===e){pe=null;break}var l=t.sibling;if(l!==null){l.return=t.return,pe=l;break}pe=t.return}}var jk=Math.ceil,qs=Tn.ReactCurrentDispatcher,ed=Tn.ReactCurrentOwner,Vt=Tn.ReactCurrentBatchConfig,Ce=0,Je=null,Ke=null,it=0,jt=0,Xr=ir(0),Xe=0,bo=null,Cr=0,bl=0,td=0,Qi=null,vt=null,nd=0,pi=1/0,xn=null,Ys=!1,Mu=null,Xn=null,Jo=!1,Wn=null,Xs=0,Zi=0,Pu=null,vs=-1,ws=0;function mt(){return Ce&6?Ve():vs!==-1?vs:vs=Ve()}function Qn(e){return e.mode&1?Ce&2&&it!==0?it&-it:ck.transition!==null?(ws===0&&(ws=bm()),ws):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Tm(e.type)),e):1}function en(e,t,n,r){if(50<Zi)throw Zi=0,Pu=null,Error(le(185));jo(e,n,r),(!(Ce&2)||e!==Je)&&(e===Je&&(!(Ce&2)&&(bl|=n),Xe===4&&Bn(e,it)),Et(e,r),n===1&&Ce===0&&!(t.mode&1)&&(pi=Ve()+500,xl&&or()))}function Et(e,t){var n=e.callbackNode;cw(e,t);var r=As(e,e===Je?it:0);if(r===0)n!==null&&df(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&df(n),t===1)e.tag===0?uk(rp.bind(null,e)):qm(rp.bind(null,e)),ok(function(){!(Ce&6)&&or()}),n=null;else{switch(Em(r)){case 1:n=_c;break;case 4:n=wm;break;case 16:n=Ls;break;case 536870912:n=km;break;default:n=Ls}n=Gg(n,zg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zg(e,t){if(vs=-1,ws=0,Ce&6)throw Error(le(327));var n=e.callbackNode;if(ri()&&e.callbackNode!==n)return null;var r=As(e,e===Je?it:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Qs(e,r);else{t=r;var i=Ce;Ce|=2;var o=Bg();(Je!==e||it!==t)&&(xn=null,pi=Ve()+500,xr(e,t));do try{$k();break}catch(l){Fg(e,l)}while(!0);Bc(),qs.current=o,Ce=i,Ke!==null?t=0:(Je=null,it=0,t=Xe)}if(t!==0){if(t===2&&(i=cu(e),i!==0&&(r=i,t=Du(e,i))),t===1)throw n=bo,xr(e,0),Bn(e,r),Et(e,Ve()),n;if(t===6)Bn(e,r);else{if(i=e.current.alternate,!(r&30)&&!_k(i)&&(t=Qs(e,r),t===2&&(o=cu(e),o!==0&&(r=o,t=Du(e,o))),t===1))throw n=bo,xr(e,0),Bn(e,r),Et(e,Ve()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(le(345));case 2:dr(e,vt,xn);break;case 3:if(Bn(e,r),(r&130023424)===r&&(t=nd+500-Ve(),10<t)){if(As(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=xu(dr.bind(null,e,vt,xn),t);break}dr(e,vt,xn);break;case 4:if(Bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Jt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jk(r/1960))-r,10<r){e.timeoutHandle=xu(dr.bind(null,e,vt,xn),r);break}dr(e,vt,xn);break;case 5:dr(e,vt,xn);break;default:throw Error(le(329))}}}return Et(e,Ve()),e.callbackNode===n?zg.bind(null,e):null}function Du(e,t){var n=Qi;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=Qs(e,t),e!==2&&(t=vt,vt=n,t!==null&&zu(t)),e}function zu(e){vt===null?vt=e:vt.push.apply(vt,e)}function _k(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!rn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bn(e,t){for(t&=~td,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),r=1<<n;e[n]=-1,t&=~r}}function rp(e){if(Ce&6)throw Error(le(327));ri();var t=As(e,0);if(!(t&1))return Et(e,Ve()),null;var n=Qs(e,t);if(e.tag!==0&&n===2){var r=cu(e);r!==0&&(t=r,n=Du(e,r))}if(n===1)throw n=bo,xr(e,0),Bn(e,t),Et(e,Ve()),n;if(n===6)throw Error(le(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dr(e,vt,xn),Et(e,Ve()),null}function rd(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(pi=Ve()+500,xl&&or())}}function Nr(e){Wn!==null&&Wn.tag===0&&!(Ce&6)&&ri();var t=Ce;Ce|=1;var n=Vt.transition,r=Te;try{if(Vt.transition=null,Te=1,e)return e()}finally{Te=r,Vt.transition=n,Ce=t,!(Ce&6)&&or()}}function id(){jt=Xr.current,De(Xr)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ik(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Dc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ds();break;case 3:di(),De(kt),De(ct),Kc();break;case 5:Gc(r);break;case 4:di();break;case 13:De(Be);break;case 19:De(Be);break;case 10:Uc(r.type._context);break;case 22:case 23:id()}n=n.return}if(Je=e,Ke=e=Zn(e.current,null),it=jt=t,Xe=0,bo=null,td=bl=Cr=0,vt=Qi=null,mr!==null){for(t=0;t<mr.length;t++)if(n=mr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}mr=null}return e}function Fg(e,t){do{var n=Ke;try{if(Bc(),gs.current=Ks,Gs){for(var r=Ue.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Gs=!1}if(Sr=0,Ze=Ye=Ue=null,Yi=!1,vo=0,ed.current=null,n===null||n.return===null){Xe=1,bo=t,Ke=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=it,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Wf(s);if(p!==null){p.flags&=-257,Vf(p,s,l,o,t),p.mode&1&&Hf(o,u,t),t=p,a=u;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){Hf(o,u,t),od();break e}a=Error(le(426))}}else if(ze&&l.mode&1){var E=Wf(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Vf(E,s,l,o,t),zc(fi(a,l));break e}}o=a=fi(a,l),Xe!==4&&(Xe=2),Qi===null?Qi=[o]:Qi.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Eg(o,a,t);Pf(o,v);break e;case 1:l=a;var m=o.type,g=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Xn===null||!Xn.has(g)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Sg(o,l,t);Pf(o,w);break e}}o=o.return}while(o!==null)}Hg(n)}catch(C){t=C,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function Bg(){var e=qs.current;return qs.current=Ks,e===null?Ks:e}function od(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),Je===null||!(Cr&268435455)&&!(bl&268435455)||Bn(Je,it)}function Qs(e,t){var n=Ce;Ce|=2;var r=Bg();(Je!==e||it!==t)&&(xn=null,xr(e,t));do try{Tk();break}catch(i){Fg(e,i)}while(!0);if(Bc(),Ce=n,qs.current=r,Ke!==null)throw Error(le(261));return Je=null,it=0,Xe}function Tk(){for(;Ke!==null;)Ug(Ke)}function $k(){for(;Ke!==null&&!tw();)Ug(Ke)}function Ug(e){var t=Vg(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?Hg(e):Ke=t,ed.current=null}function Hg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ek(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ke=null;return}}else if(n=bk(n,t,jt),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Xe===0&&(Xe=5)}function dr(e,t,n){var r=Te,i=Vt.transition;try{Vt.transition=null,Te=1,Ik(e,t,n,r)}finally{Vt.transition=i,Te=r}return null}function Ik(e,t,n,r){do ri();while(Wn!==null);if(Ce&6)throw Error(le(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(le(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(dw(e,o),e===Je&&(Ke=Je=null,it=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Jo||(Jo=!0,Gg(Ls,function(){return ri(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Vt.transition,Vt.transition=null;var s=Te;Te=1;var l=Ce;Ce|=4,ed.current=null,Ck(e,n),Pg(n,e),Qw(gu),Rs=!!mu,gu=mu=null,e.current=n,Nk(n),nw(),Ce=l,Te=s,Vt.transition=o}else e.current=n;if(Jo&&(Jo=!1,Wn=e,Xs=i),o=e.pendingLanes,o===0&&(Xn=null),ow(n.stateNode),Et(e,Ve()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ys)throw Ys=!1,e=Mu,Mu=null,e;return Xs&1&&e.tag!==0&&ri(),o=e.pendingLanes,o&1?e===Pu?Zi++:(Zi=0,Pu=e):Zi=0,or(),null}function ri(){if(Wn!==null){var e=Em(Xs),t=Vt.transition,n=Te;try{if(Vt.transition=null,Te=16>e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,Xs=0,Ce&6)throw Error(le(331));var i=Ce;for(Ce|=4,pe=e.current;pe!==null;){var o=pe,s=o.child;if(pe.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(pe=u;pe!==null;){var c=pe;switch(c.tag){case 0:case 11:case 15:Xi(8,c,o)}var d=c.child;if(d!==null)d.return=c,pe=d;else for(;pe!==null;){c=pe;var h=c.sibling,p=c.return;if(Rg(c),c===u){pe=null;break}if(h!==null){h.return=p,pe=h;break}pe=p}}}var y=o.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}pe=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,pe=s;else e:for(;pe!==null;){if(o=pe,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Xi(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,pe=v;break e}pe=o.return}}var m=e.current;for(pe=m;pe!==null;){s=pe;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,pe=g;else e:for(s=m;pe!==null;){if(l=pe,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:kl(9,l)}}catch(C){We(l,l.return,C)}if(l===s){pe=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,pe=w;break e}pe=l.return}}if(Ce=i,or(),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(pl,e)}catch{}r=!0}return r}finally{Te=n,Vt.transition=t}}return!1}function ip(e,t,n){t=fi(n,t),t=Eg(e,t,1),e=Yn(e,t,1),t=mt(),e!==null&&(jo(e,1,t),Et(e,t))}function We(e,t,n){if(e.tag===3)ip(e,e,n);else for(;t!==null;){if(t.tag===3){ip(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xn===null||!Xn.has(r))){e=fi(n,e),e=Sg(t,e,1),t=Yn(t,e,1),e=mt(),t!==null&&(jo(t,1,e),Et(t,e));break}}t=t.return}}function Lk(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&n,Je===e&&(it&n)===n&&(Xe===4||Xe===3&&(it&130023424)===it&&500>Ve()-nd?xr(e,0):td|=n),Et(e,t)}function Wg(e,t){t===0&&(e.mode&1?(t=Ho,Ho<<=1,!(Ho&130023424)&&(Ho=4194304)):t=1);var n=mt();e=Nn(e,t),e!==null&&(jo(e,t,n),Et(e,n))}function Ak(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wg(e,n)}function Rk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(le(314))}r!==null&&r.delete(t),Wg(e,n)}var Vg;Vg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,kk(e,t,n);wt=!!(e.flags&131072)}else wt=!1,ze&&t.flags&1048576&&Ym(t,Bs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xs(e,t),e=t.pendingProps;var i=ai(t,ct.current);ni(t,n),i=Yc(null,t,r,e,i,n);var o=Xc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(r)?(o=!0,zs(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wc(t),i.updater=wl,t.stateNode=i,i._reactInternals=t,Cu(t,r,e,n),t=_u(null,t,r,!0,o,n)):(t.tag=0,ze&&o&&Pc(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mk(r),e=Yt(r,e),i){case 0:t=ju(null,t,r,e,n);break e;case 1:t=qf(null,t,r,e,n);break e;case 11:t=Gf(null,t,r,e,n);break e;case 14:t=Kf(null,t,r,Yt(r.type,e),n);break e}throw Error(le(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yt(r,i),ju(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yt(r,i),qf(e,t,r,i,n);case 3:e:{if(_g(t),e===null)throw Error(le(387));r=t.pendingProps,o=t.memoizedState,i=o.element,tg(e,t),Ws(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=fi(Error(le(423)),t),t=Yf(e,t,r,n,i);break e}else if(r!==i){i=fi(Error(le(424)),t),t=Yf(e,t,r,n,i);break e}else for(_t=qn(t.stateNode.containerInfo.firstChild),Tt=t,ze=!0,Zt=null,n=Jm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ui(),r===i){t=jn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return ng(t),e===null&&bu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,yu(r,i)?s=null:o!==null&&yu(r,o)&&(t.flags|=32),jg(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&bu(t),null;case 13:return Tg(e,t,n);case 4:return Vc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ci(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yt(r,i),Gf(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Me(Us,r._currentValue),r._currentValue=s,o!==null)if(rn(o.value,s)){if(o.children===i.children&&!kt.current){t=jn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=En(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Eu(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(le(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Eu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ni(t,n),i=Gt(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=Yt(r,t.pendingProps),i=Yt(r.type,i),Kf(e,t,r,i,n);case 15:return Cg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yt(r,i),xs(e,t),t.tag=1,bt(r)?(e=!0,zs(t)):e=!1,ni(t,n),bg(t,r,i),Cu(t,r,i,n),_u(null,t,r,!0,e,n);case 19:return $g(e,t,n);case 22:return Ng(e,t,n)}throw Error(le(156,t.tag))};function Gg(e,t){return vm(e,t)}function Ok(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,n,r){return new Ok(e,t,n,r)}function sd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mk(e){if(typeof e=="function")return sd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cc)return 11;if(e===Nc)return 14}return 2}function Zn(e,t){var n=e.alternate;return n===null?(n=Wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ks(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")sd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fr:return vr(n.children,i,o,t);case Sc:s=8,i|=8;break;case Ya:return e=Wt(12,n,t,i|2),e.elementType=Ya,e.lanes=o,e;case Xa:return e=Wt(13,n,t,i),e.elementType=Xa,e.lanes=o,e;case Qa:return e=Wt(19,n,t,i),e.elementType=Qa,e.lanes=o,e;case nm:return El(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case em:s=10;break e;case tm:s=9;break e;case Cc:s=11;break e;case Nc:s=14;break e;case Dn:s=16,r=null;break e}throw Error(le(130,e==null?e:typeof e,""))}return t=Wt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vr(e,t,n,r){return e=Wt(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=Wt(22,e,r,t),e.elementType=nm,e.lanes=n,e.stateNode={isHidden:!1},e}function ha(e,t,n){return e=Wt(6,e,null,t),e.lanes=n,e}function ma(e,t,n){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pk(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,r,i,o,s,l,a){return e=new Pk(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Wt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wc(o),e}function Dk(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kg(e){if(!e)return er;e=e._reactInternals;e:{if(Ir(e)!==e||e.tag!==1)throw Error(le(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(le(171))}if(e.tag===1){var n=e.type;if(bt(n))return Km(e,n,t)}return t}function qg(e,t,n,r,i,o,s,l,a){return e=ld(n,r,!0,e,i,o,s,l,a),e.context=Kg(null),n=e.current,r=mt(),i=Qn(n),o=En(r,i),o.callback=t??null,Yn(n,o,i),e.current.lanes=i,jo(e,i,r),Et(e,r),e}function Sl(e,t,n,r){var i=t.current,o=mt(),s=Qn(i);return n=Kg(n),t.context===null?t.context=n:t.pendingContext=n,t=En(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yn(i,t,s),e!==null&&(en(e,i,s,o),ms(e,i,s)),s}function Zs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ad(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function zk(){return null}var Yg=typeof reportError=="function"?reportError:function(e){console.error(e)};function ud(e){this._internalRoot=e}Cl.prototype.render=ud.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(le(409));Sl(e,t,null,null)};Cl.prototype.unmount=ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){Sl(null,e,null,null)}),t[Cn]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&_m(e)}};function cd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sp(){}function Fk(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Zs(s);o.call(u)}}var s=qg(t,r,e,0,null,!1,!1,"",sp);return e._reactRootContainer=s,e[Cn]=s.current,ho(e.nodeType===8?e.parentNode:e),Nr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Zs(a);l.call(u)}}var a=ld(e,0,!1,null,null,!1,!1,"",sp);return e._reactRootContainer=a,e[Cn]=a.current,ho(e.nodeType===8?e.parentNode:e),Nr(function(){Sl(t,a,n,r)}),a}function jl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=Zs(s);l.call(a)}}Sl(t,s,e,i)}else s=Fk(n,t,e,i,r);return Zs(s)}Sm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bi(t.pendingLanes);n!==0&&(Tc(t,n|1),Et(t,Ve()),!(Ce&6)&&(pi=Ve()+500,or()))}break;case 13:Nr(function(){var r=Nn(e,1);if(r!==null){var i=mt();en(r,e,1,i)}}),ad(e,1)}};$c=function(e){if(e.tag===13){var t=Nn(e,134217728);if(t!==null){var n=mt();en(t,e,134217728,n)}ad(e,134217728)}};Cm=function(e){if(e.tag===13){var t=Qn(e),n=Nn(e,t);if(n!==null){var r=mt();en(n,e,t,r)}ad(e,t)}};Nm=function(){return Te};jm=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}};lu=function(e,t,n){switch(t){case"input":if(eu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=yl(r);if(!i)throw Error(le(90));im(r),eu(r,i)}}}break;case"textarea":sm(e,n);break;case"select":t=n.value,t!=null&&Zr(e,!!n.multiple,t,!1)}};pm=rd;hm=Nr;var Bk={usingClientEntryPoint:!1,Events:[To,Wr,yl,dm,fm,rd]},Li={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uk={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ym(e),e===null?null:e.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||zk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!es.isDisabled&&es.supportsFiber)try{pl=es.inject(Uk),fn=es}catch{}}It.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bk;It.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cd(t))throw Error(le(200));return Dk(e,t,null,n)};It.createRoot=function(e,t){if(!cd(e))throw Error(le(299));var n=!1,r="",i=Yg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ld(e,1,!1,null,null,n,!1,r,i),e[Cn]=t.current,ho(e.nodeType===8?e.parentNode:e),new ud(t)};It.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(le(188)):(e=Object.keys(e).join(","),Error(le(268,e)));return e=ym(t),e=e===null?null:e.stateNode,e};It.flushSync=function(e){return Nr(e)};It.hydrate=function(e,t,n){if(!Nl(t))throw Error(le(200));return jl(null,e,t,!0,n)};It.hydrateRoot=function(e,t,n){if(!cd(e))throw Error(le(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Yg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=qg(t,null,e,1,n??null,i,!1,o,s),e[Cn]=t.current,ho(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Cl(t)};It.render=function(e,t,n){if(!Nl(t))throw Error(le(200));return jl(null,e,t,!1,n)};It.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(le(40));return e._reactRootContainer?(Nr(function(){jl(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1};It.unstable_batchedUpdates=rd;It.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Nl(n))throw Error(le(200));if(e==null||e._reactInternals===void 0)throw Error(le(38));return jl(e,t,n,!1,r)};It.version="18.3.1-next-f1338f8080-20240426";function Xg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xg)}catch(e){console.error(e)}}Xg(),Xh.exports=It;var Hk=Xh.exports,Qg,lp=Hk;Qg=lp.createRoot,lp.hydrateRoot;const jr=6;function Eo(e){return f.jsx("div",{className:"ds-divider",role:"separator","aria-orientation":"vertical",title:e.title,onDoubleClick:e.onReset,onPointerDown:t=>{if(t.button!==0)return;t.preventDefault();const n=t.currentTarget,r=t.clientX,i=e.start();n.setPointerCapture(t.pointerId),n.classList.add("dragging"),document.body.classList.add("ds-resizing");const o=l=>e.onDrag(i,l.clientX-r),s=()=>{n.removeEventListener("pointermove",o),n.removeEventListener("pointerup",s),n.removeEventListener("pointercancel",s),n.classList.remove("dragging"),document.body.classList.remove("ds-resizing"),e.onEnd()};n.addEventListener("pointermove",o),n.addEventListener("pointerup",s),n.addEventListener("pointercancel",s)}})}function Zg(e){const[t,n]=H.useState(0);return H.useEffect(()=>{const r=e.current;if(!r)return;const i=new ResizeObserver(()=>n(r.clientWidth));return i.observe(r),n(r.clientWidth),()=>i.disconnect()},[e]),t}async function Io(e){try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}}/*!
|
|
41
|
-
* Icon paths from Feather (https://github.com/feathericons/feather)
|
|
42
|
-
* The MIT License (MIT)
|
|
43
|
-
* Copyright (c) 2013-2023 Cole Bemis
|
|
44
|
-
*
|
|
45
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
46
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
47
|
-
* in the Software without restriction, including without limitation the rights
|
|
48
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
50
|
-
* furnished to do so, subject to the following conditions:
|
|
51
|
-
*
|
|
52
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
53
|
-
* copies or substantial portions of the Software.
|
|
54
|
-
*
|
|
55
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
56
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
57
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
58
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
59
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
60
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
61
|
-
* SOFTWARE.
|
|
62
|
-
*/function ga({on:e,size:t=14,x:n,y:r}){return f.jsx("svg",{className:`eye${e?" on":""}`,x:n,y:r,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e?f.jsxs(f.Fragment,{children:[f.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),f.jsx("circle",{cx:"12",cy:"12",r:"3"})]}):f.jsxs(f.Fragment,{children:[f.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),f.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})})}function Fu({on:e,size:t=14,x:n,y:r}){return f.jsxs("svg",{className:`pin-icon${e?" on":""}`,x:n,y:r,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[f.jsx("path",{d:"M8 3h8"}),f.jsx("path",{d:"M9.5 3v6L6 14h12l-3.5-5V3z",fill:e?"currentColor":"none"}),f.jsx("path",{d:"M12 14v7"})]})}function sr({size:e=18,x:t,y:n,className:r,children:i}){return f.jsx("svg",{className:r,x:t,y:n,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:i})}function Wk(e){return f.jsxs(sr,{...e,children:[f.jsx("circle",{cx:"18",cy:"5",r:"3"}),f.jsx("circle",{cx:"6",cy:"12",r:"3"}),f.jsx("circle",{cx:"18",cy:"19",r:"3"}),f.jsx("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),f.jsx("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})}function Vk(e){return f.jsxs(sr,{...e,children:[f.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),f.jsx("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),f.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})]})}function wi({size:e=14,...t}){return f.jsx(sr,{size:e,...t,children:f.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function Jg({size:e=14,...t}){return f.jsxs(sr,{size:e,...t,children:[f.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),f.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}function Gk({size:e=14,...t}){return f.jsxs(sr,{size:e,...t,children:[f.jsx("polyline",{points:"23 4 23 10 17 10"}),f.jsx("polyline",{points:"1 20 1 14 7 14"}),f.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})}function Bu({size:e=14,...t}){return f.jsx(sr,{size:e,...t,children:f.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Kk(e){return f.jsxs(sr,{...e,children:[f.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),f.jsx("polyline",{points:"14 2 14 8 20 8"}),f.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),f.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),f.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function ey({size:e=14,...t}){return f.jsx(sr,{size:e,...t,children:f.jsx("polyline",{points:"6 9 12 15 18 9"})})}function _l({n:e,title:t,className:n}){return f.jsxs("span",{className:`ds-count${n?` ${n}`:""}`,title:t,children:[f.jsx(wi,{size:12}),e]})}const qk=H.forwardRef(function({value:t,onChange:n,onSave:r,onCancel:i,placeholder:o,autoFocus:s,className:l},a){return f.jsx("textarea",{ref:a,className:l,autoFocus:s,value:t,placeholder:o,onChange:u=>n(u.target.value),onKeyDown:u=>{u.key==="Enter"&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),r()),u.key==="Escape"&&(u.preventDefault(),u.stopPropagation(),u.target.blur(),i())}})});function $n(e,t){try{const n=localStorage.getItem(e);return n===null?t:JSON.parse(n)}catch{return t}}function mn(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function Yk(e){try{localStorage.removeItem(e)}catch{}}function ya(e){const[t,n]=H.useState(()=>{const r=$n(e,[]);return new Set(Array.isArray(r)?r:[])});return H.useEffect(()=>mn(e,[...t]),[e,t]),[t,n]}function ty(e,t,n){try{return localStorage.getItem(`${e}.${t}`)??n}catch{return n}}function ny(e,t,n){try{localStorage.setItem(`${e}.${t}`,n)}catch{}}function dd(e){const t=$n(e,[]);return Array.isArray(t)?t:[]}function fd(e,t){t.length?mn(e,t):Yk(e)}const ry=()=>`${Date.now().toString(36)}${Math.random().toString(36).slice(2,7)}`,iy={open:"未対応",partial:"一部解消",updated:"コメント後に変更あり",resolved:"解消済み?"};function Tl(e){return["以下は、git の差分のレビュービューア diffshape で付けたレビューコメントです。各指摘に対応してください。",`リポジトリ: ${e.repoRoot}`,`比較: ${e.targetLabel} と ${e.baseLabel} の差分`]}function pd(e){const[t,n]=H.useState(!1),r=async()=>{await e.onCopy(),n(!0),window.setTimeout(()=>n(!1),1600)};return f.jsxs("article",{className:`ds-comment ${e.state}${e.lit?" lit":""}${e.editing?" editing":""}`,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,children:[e.top&&f.jsx("div",{className:"ds-comment-top",children:e.top}),f.jsx("div",{className:"ds-comment-body",children:e.body}),f.jsxs("div",{className:"ds-comment-foot",children:[f.jsx("span",{className:`ds-comment-state ${e.state}`,title:e.stateTitle,children:iy[e.state]}),e.meta&&f.jsx("span",{className:"ds-muted",children:e.meta}),f.jsx("span",{className:"ds-spacer"}),f.jsx("button",{className:"ds-link",onClick:()=>void r(),title:"このコメントだけ AI 用にコピー",children:t?"コピーしました":"コピー"}),f.jsx("button",{className:"ds-link",onClick:e.onEdit,children:"編集"}),f.jsx("button",{className:"ds-link danger",onClick:()=>{window.confirm("このコメントを削除しますか?")&&e.onDelete()},children:"削除"})]})]})}const hd=H.forwardRef(function(t,n){const r=(t.canSave??!0)&&t.value.trim()!=="";return f.jsxs("div",{className:`ds-composer${t.editing?" editing":""}${t.className?` ${t.className}`:""}`,children:[t.top&&f.jsx("div",{className:"ds-composer-top",children:t.top}),f.jsx(qk,{ref:n,className:"ds-composer-input",autoFocus:t.autoFocus,value:t.value,placeholder:t.placeholder,onChange:t.onChange,onSave:()=>r&&t.onSave(),onCancel:t.onCancel}),f.jsxs("div",{className:"ds-composer-foot",children:[f.jsx("span",{className:"ds-muted",children:"⌘ / Ctrl + Enter で保存 ・ Esc でキャンセル"}),f.jsx("span",{className:"ds-spacer"}),(t.showCancel??!0)&&f.jsx("button",{className:"ds-btn",onClick:t.onCancel,children:"キャンセル"}),f.jsx("button",{className:"ds-btn ds-btn-primary",onClick:t.onSave,disabled:!r,children:t.editing?"更新":"保存"})]})]})});function Ji(e){const t=JSON.stringify(e);let n=5381;for(let r=0;r<t.length;r++)n=(n<<5)+n+t.charCodeAt(r)|0;return(n>>>0).toString(36)}const ap=[["added","追加"],["modified","変更"],["removed","削除"]];function $l({stats:e,unit:t,showZero:n=!1}){const r=ap.filter(([o])=>n||e[o]>0);if(r.length===0)return null;const i=ap.map(([o,s])=>`${s} ${e[o]}`).join("・")+` ${t}`;return f.jsx("span",{className:"ds-status",title:i,children:r.map(([o])=>f.jsxs("span",{className:`ds-status-n ${o}${e[o]===0?" zero":""}`,children:[f.jsx("span",{className:"ds-status-dot",children:"●"}),e[o]]},o))})}function ki({stats:e,title:t,showZero:n=!1}){const r=[["added","+",e.added],["removed","−",e.removed]];e.modified!==void 0&&r.push(["modified","~",e.modified]);const i=r.filter(([,,o])=>n||o>0);return i.length===0?null:f.jsx("span",{className:"ds-change",title:t,children:i.map(([o,s,l])=>f.jsxs("span",{className:l?o:"zero",children:[s,l]},o))})}function md({children:e}){return f.jsx("header",{className:"ds-bar",children:e})}function gd({children:e}){return f.jsx("span",{className:"ds-bar-counts",children:e})}function hi({children:e}){return f.jsx("span",{className:"ds-bar-label",children:e})}function yd(){return f.jsx("span",{className:"ds-bar-sep"})}function xd(){return f.jsx("span",{className:"ds-bar-spacer"})}function vd({done:e,total:t,title:n}){return t===0?null:f.jsxs("span",{className:"ds-progress",title:n,children:[f.jsxs("span",{children:["確認済み ",e," / ",t]}),f.jsx("span",{className:"ds-progress-bar",children:f.jsx("span",{style:{width:`${e/t*100}%`}})})]})}function wd(e){var n;if(e.kind==="option")return`--schema ${e.patterns.join(" ")}`;const t=((n=e.envs)==null?void 0:n.filter(Boolean))??[];return`${e.configs.join(", ")}${t.length?`(env: ${t.join(", ")})`:""} の src`}const bs=e=>e.diff.tables.length+e.diff.values.length+e.diff.enums.length+e.diff.domains.length,oy=e=>`カラム・制約・インデックス:追加 ${e.added}・削除 ${e.removed}・変更 ${e.modified}`;function sy(e){const t={added:0,removed:0,modified:0};for(const n of[...e.columns,...e.constraints,...e.indexes])t[n.status]++;return e.comment&&e.status==="modified"&&t.modified++,t}function Xk(e){const t=new Map,n=r=>{let i=t.get(r);return i||t.set(r,i={primary:!1,unique:!1,references:[]}),i};for(const r of e)r.kind==="primary"&&r.columns.forEach(i=>n(i).primary=!0),r.kind==="unique"&&r.columns.length===1&&(n(r.columns[0]).unique=!0),r.kind==="foreign"&&r.references&&r.columns.length===1&&n(r.columns[0]).references.push({table:r.references.table,columns:r.references.columns}),r.kind==="check"&&r.values&&(n(r.values.column).values=r.values.values);return t}function Qk(e){var n;return[...e.constraints.map(r=>r.after??(e.status==="removed"?r.before:void 0)).filter(r=>!!r),...((n=e.unchanged)==null?void 0:n.constraints)??[]]}function Il(e,t){const n=new Set(e??[]),r=new Set(t??[]);return[...(t??[]).map(i=>({value:i,status:e&&!n.has(i)?"added":"same"})),...(e??[]).filter(i=>!r.has(i)).map(i=>({value:i,status:"removed"}))]}function ly(e){return e.source==="check"?{label:`${e.table}.${e.column}`,table:e.table}:{label:e.type??""}}function Uu(e){const t=[{key:"type",text:e.type}];return t.push({key:"notNull",text:e.notNull?"NOT NULL":"NULL"}),e.default!==void 0&&t.push({key:"default",text:`DEFAULT ${e.default}`}),e.identity&&t.push({key:"identity",text:`IDENTITY ${e.identity==="always"?"ALWAYS":"BY DEFAULT"}`}),e.generated&&t.push({key:"generated",text:`GENERATED (${e.generated})`}),t}function eo(e){return`${e.method?`USING ${e.method} `:""}(${e.columns.join(", ")})${e.include?` INCLUDE (${e.include.join(", ")})`:""}${e.where?` WHERE ${e.where}`:""}`}function Zk(e){return`${e.unique?"UNIQUE ":""}INDEX ${eo(e)}`}function Jk(e,t){const n=t.trim().toLowerCase();return n?e.name.toLowerCase().includes(n)||e.columns.some(r=>r.name.toLowerCase().includes(n)):!0}const mi=e=>`${e.kind}:${e.table??""}:${e.name}`,Hu=e=>({kind:"table",table:e,name:e});function ay(e){switch(e.kind){case"table":case"type":return e.name;case"column":case"value":return`${e.table}.${e.name}`;default:return`${e.table}:${e.name}`}}const Es={table:"テーブル",column:"カラム",constraint:"制約",index:"インデックス",value:"値",type:"型"};function Wu(e){return e.kind==="table"||e.kind==="type"?`${Es[e.kind]} ${e.name}`:e.kind==="column"||e.kind==="value"?`${Es[e.kind]} ${e.table}.${e.name}`:`${Es[e.kind]} ${e.table} の ${e.name}`}function e0(e){return e.kind==="table"?"テーブル全体":e.kind==="type"?e.name:`${Es[e.kind]} ${e.name}`}const Ft={added:"今回追加",removed:"今回削除",modified:"今回変更"},xa=e=>Uu(e).filter(t=>t.key!=="notNull"||e.notNull).map(t=>t.text).join(" "),va=e=>Zk(e);function t0(e){if(e.status!=="modified")return Ft[e.status];const t=[],n=(r,i)=>{const o=r.filter(u=>u.status==="added").length,s=r.filter(u=>u.status==="removed").length,l=r.filter(u=>u.status==="modified").length,a=[o&&`+${o}`,s&&`−${s}`,l&&`~${l}`].filter(Boolean).join(" ");a&&t.push(`${i} ${a}`)};return n(e.columns,"カラム"),n(e.constraints,"制約"),n(e.indexes,"インデックス"),e.comment&&t.push("コメント"),`${Ft.modified}(${t.join("、")})`}function kd(e,t){const n=e.diff,r=t.table?n.tables.find(i=>i.name===t.table):void 0;switch(t.kind){case"table":return r?t0(r):void 0;case"column":{const i=r==null?void 0:r.columns.find(o=>o.name===t.name);return i?i.status!=="modified"?`${Ft[i.status]}: ${xa(i.after??i.before)}`:`${Ft.modified}: ${xa(i.before)} → ${xa(i.after)}`:void 0}case"constraint":{const i=r==null?void 0:r.constraints.find(o=>o.name===t.name);return i?i.status!=="modified"?`${Ft[i.status]}: ${(i.after??i.before).definition}`:`${Ft.modified}: ${i.before.definition} → ${i.after.definition}`:void 0}case"index":{const i=r==null?void 0:r.indexes.find(o=>o.name===t.name);return i?i.status!=="modified"?`${Ft[i.status]}: ${va(i.after??i.before)}`:`${Ft.modified}: ${va(i.before)} → ${va(i.after)}`:void 0}case"value":{const i=n.values.find(o=>o.source==="check"&&o.table===t.table&&o.column===t.name);return i?up(i):void 0}case"type":{const i=n.enums.find(l=>l.name===t.name);if(i){if(i.status!=="modified")return`${Ft[i.status]}: ENUM (${(i.after??i.before).values.join(", ")})`;const l=n.values.find(a=>a.type===t.name);return l?`値の変更: ${up(l)}`:Ft.modified}const o=n.domains.find(l=>l.name===t.name);if(!o)return;const s=l=>`${l.type}${l.notNull?" NOT NULL":""}${l.checks.map(a=>` ${a.definition}`).join("")}`;return o.status!=="modified"?`${Ft[o.status]}: DOMAIN ${s(o.after??o.before)}`:`${Ft.modified}: ${s(o.before)} → ${s(o.after)}`}}}function up(e){return e.status==="added"?`値の制限を追加(${(e.after??[]).join(", ")})`:e.status==="removed"?`値の制限を削除(変更前: ${(e.before??[]).join(", ")})`:`${[...e.added.map(n=>`+${n}`),...e.removed.map(n=>`−${n}`)].join(" ")}(変更後: ${(e.after??[]).join(", ")})`}function n0(e,t){if(t.kind==="value"){const n=e.diff.values.find(r=>r.source==="check"&&r.table===t.table&&r.column===t.name);if(n!=null&&n.constraint){const r=e.locations[`${t.table}:${n.constraint}`];if(r)return r}}return e.locations[ay(t)]}function r0(e,t){const n=e.locations[ay(t)];return!!n&&!n.base}function ii(e,t){const n=kd(e,t.target);return!r0(e,t.target)&&!n||t.snapshot!==void 0&&n===void 0?"resolved":n!==t.snapshot?"updated":"open"}function i0(e,t,n){return{id:ry(),target:t,body:n,createdAt:Date.now(),snapshot:kd(e,t)}}const o0=e=>e?e.base?`比較元の ${e.file}:${e.line}(変更後にはありません)`:`${e.file}:${e.line}`:void 0;function uy(e,t,n={}){const r=n.includeResolved?t:t.filter(o=>ii(e,o)!=="resolved"),i=[...n.header===!1?[]:[...Tl({repoRoot:e.repoRoot,targetLabel:e.target.label,baseLabel:e.base.label}),"対象: DB スキーマ(dbshape)"],`スキーマの SQL: ${wd(e.schemaFrom)}`,""];return r.forEach((o,s)=>{const l=ii(e,o),a=kd(e,o.target);i.push(`${s+1}. ${Wu(o.target)}${a?`(${a})`:"(変更なし)"}${l==="resolved"?"(解消済み?)":""}`);const u=o0(n0(e,o.target));u&&i.push(` 定義: ${u}`),l==="updated"&&i.push(` コメントしたときは: ${o.snapshot??"変更なし"}`),i.push(` コメント: ${o.body.trim().replace(/\n/g,`
|
|
63
|
-
`)}`),i.push("")}),{text:i.join(`
|
|
64
|
-
`).trimEnd()+`
|
|
65
|
-
`,included:r.length,skipped:t.length-r.length}}const cy="dbshape.comments:",s0=e=>dd(cy+e),l0=(e,t)=>fd(cy+e,t),dy=H.createContext(null),bd=()=>H.useContext(dy),a0=iy;function tr({target:e,label:t}){const n=bd();if(!n)return null;const r=mi(e),i=n.comments.filter(o=>mi(o.target)===r).length;return f.jsxs("button",{className:`cbtn ${i?"has":""}`,onClick:o=>{o.stopPropagation(),n.compose(e)},title:`${t??e0(e)} にコメントする`,"aria-label":"コメントする",children:[f.jsx(wi,{size:12}),i>0&&f.jsx("span",{className:"cnum",children:i})]})}function _n({target:e,colSpan:t}){const n=bd();if(!n)return null;const r=mi(e),i=n.comments.filter(s=>mi(s.target)===r),o=n.composing===r;return!i.length&&!o?null:t?f.jsx("tr",{className:"thread-row",children:f.jsx("td",{colSpan:t,children:f.jsx(_n,{target:e})})}):f.jsxs("div",{className:"thread",id:`c-${r}`,children:[i.map(s=>n.editing===s.id?f.jsx(cp,{initial:s.body,onSave:l=>n.update(s.id,l),onCancel:()=>n.edit(null)},s.id):f.jsx(u0,{c:s},s.id)),o&&f.jsx(cp,{initial:"",onSave:s=>n.add(e,s),onCancel:()=>n.compose(null)})]})}function u0({c:e}){const t=bd(),n=ii(t.data,e);return f.jsx(pd,{body:e.body,state:n,stateTitle:n==="updated"?`コメントしたときは: ${e.snapshot??"変更なし"}`:n==="resolved"?"対象がなくなったか、比較元と同じに戻りました":void 0,onCopy:()=>Io(uy(t.data,[e],{includeResolved:!0}).text),onEdit:()=>t.edit(e.id),onDelete:()=>t.remove(e.id)})}function cp({initial:e,onSave:t,onCancel:n}){const[r,i]=H.useState(e);return f.jsx(hd,{autoFocus:!0,editing:e!=="",value:r,placeholder:"気になる点や直してほしいこと",onChange:i,onSave:()=>r.trim()&&t(r.trim()),onCancel:n})}function c0({table:e,reviewed:t,onReviewed:n,known:r,onJump:i,highlighted:o,alwaysOpen:s}){const[l,a]=H.useState(!t),[u,c]=H.useState(!1),d=sy(e),h=Xk(Qk(e)),p=s||l;return f.jsxs("section",{id:`table-${e.name}`,className:`card ${e.status} ${o?"highlighted":""} ${t&&!s?"reviewed":""}`,children:[f.jsxs("header",{className:"card-head",children:[!s&&f.jsx("button",{className:"fold",onClick:()=>a(!p),"aria-label":p?"たたむ":"開く","aria-expanded":p,children:p?"▾":"▸"}),f.jsxs("span",{className:"tname",children:[f.jsxs("span",{className:"schema",children:[e.schema,"."]}),e.table]}),f.jsx(ki,{stats:d,title:oy(d)}),f.jsx("span",{className:"file",title:e.file,children:e.file}),f.jsx(tr,{target:Hu(e.name),label:"テーブル全体"}),f.jsxs("label",{className:"reviewed-box",title:"確認済みにすると、図と一覧で薄く表示します(テーブルがまた変わると外れます)",children:[f.jsx("input",{type:"checkbox",checked:t,onChange:y=>{n(y.target.checked),a(!y.target.checked)}}),"確認済み"]})]}),p&&f.jsxs("div",{className:"card-body",children:[f.jsx(_n,{target:Hu(e.name)}),e.comment&&f.jsx(m0,{before:e.comment.before,after:e.comment.after,status:e.status}),e.status==="modified"?f.jsxs(f.Fragment,{children:[f.jsx(Ai,{title:"カラム",empty:e.columns.length===0,children:f.jsx("table",{className:"cols",children:f.jsx("tbody",{children:e.columns.map(y=>f.jsx(f0,{table:e.name,change:y,badges:h.get(y.name),known:r,onJump:i},y.name))})})}),f.jsx(Ai,{title:"制約",empty:e.constraints.length===0,children:e.constraints.map(y=>f.jsx(p0,{table:e.name,change:y,known:r,onJump:i},y.name))}),f.jsx(Ai,{title:"インデックス",empty:e.indexes.length===0,children:e.indexes.map(y=>f.jsx(h0,{table:e.name,change:y},y.name))}),e.unchanged&&(e.unchanged.columns.length>0||e.unchanged.constraints.length>0||e.unchanged.indexes.length>0)&&f.jsxs("div",{className:"context",children:[f.jsxs("button",{className:"link",onClick:()=>c(!u),children:[u?"▾":"▸"," 変更のないカラム ",e.unchanged.columns.length,"・制約 ",e.unchanged.constraints.length,"・インデックス ",e.unchanged.indexes.length]}),u&&f.jsxs("div",{className:"context-body",children:[f.jsx("table",{className:"cols",children:f.jsx("tbody",{children:e.unchanged.columns.map(y=>f.jsx(Vu,{table:e.name,c:y,badges:h.get(y.name),known:r,onJump:i},y.name))})}),e.unchanged.constraints.map(y=>f.jsx(dp,{table:e.name,c:y,known:r,onJump:i},y.name)),e.unchanged.indexes.map(y=>f.jsx(fp,{table:e.name,i:y},y.name))]})]})]}):f.jsxs(f.Fragment,{children:[f.jsx("table",{className:"cols",children:f.jsx("tbody",{children:e.columns.map(y=>f.jsx(Vu,{table:e.name,c:y.after??y.before,badges:h.get(y.name),known:r,onJump:i},y.name))})}),e.constraints.length>0&&f.jsx(Ai,{title:"制約",children:e.constraints.map(y=>f.jsx(dp,{table:e.name,c:y.after??y.before,known:r,onJump:i},y.name))}),e.indexes.length>0&&f.jsx(Ai,{title:"インデックス",children:e.indexes.map(y=>f.jsx(fp,{table:e.name,i:y.after??y.before},y.name))})]})]})]})}function Ai(e){return e.empty?null:f.jsxs("div",{className:"section",children:[f.jsx("div",{className:"section-title",children:e.title}),e.children]})}const fy={added:"+",removed:"−",modified:"~"};function py({b:e,known:t,onJump:n}){return e?f.jsxs(f.Fragment,{children:[e.primary&&f.jsx("span",{className:"tag key",children:"PK"}),e.unique&&f.jsx("span",{className:"tag",children:"UNIQUE"}),e.references.map(r=>f.jsx(d0,{table:r.table,columns:r.columns,known:t,onJump:n},r.table))]}):null}function d0({table:e,columns:t,known:n,onJump:r}){const i=`→ ${e}${t.length?` (${t.join(", ")})`:""}`;return n.has(e)?f.jsx("button",{className:"tag ref link",onClick:()=>r(e),title:"このテーブルの変更へ移動",children:i}):f.jsx("span",{className:"tag ref",children:i})}const hy=(e,t)=>({kind:"column",table:e,name:t});function Vu({table:e,c:t,badges:n,known:r,onJump:i}){const o=hy(e,t.name);return f.jsxs(f.Fragment,{children:[f.jsxs("tr",{className:"plain",children:[f.jsx("td",{className:"mark"}),f.jsx("td",{className:"cname",children:t.name}),f.jsxs("td",{children:[f.jsx("code",{children:t.type}),t.notNull&&f.jsx("span",{className:"attr",children:"NOT NULL"}),t.default!==void 0&&f.jsxs("span",{className:"attr",children:["DEFAULT ",t.default]}),t.identity&&f.jsx("span",{className:"attr",children:"IDENTITY"}),t.generated&&f.jsxs("span",{className:"attr",children:["GENERATED (",t.generated,")"]}),f.jsx(py,{b:n,known:r,onJump:i}),(n==null?void 0:n.values)&&f.jsx(my,{values:n.values}),t.comment&&f.jsx("span",{className:"comment",children:t.comment}),f.jsx(tr,{target:o})]})]}),f.jsx(_n,{target:o,colSpan:3})]})}function my({values:e}){return f.jsx("span",{className:"chips",children:e.map(t=>f.jsx("span",{className:"chip",children:t},t))})}function f0({table:e,change:t,badges:n,known:r,onJump:i}){const o=hy(e,t.name);if(t.status!=="modified"){const c=t.after??t.before;return f.jsxs(f.Fragment,{children:[f.jsxs("tr",{className:t.status,children:[f.jsx("td",{className:"mark",children:fy[t.status]}),f.jsx("td",{className:"cname",children:t.name}),f.jsxs("td",{children:[f.jsx("code",{children:c.type}),c.notNull&&f.jsx("span",{className:"attr",children:"NOT NULL"}),c.default!==void 0&&f.jsxs("span",{className:"attr",children:["DEFAULT ",c.default]}),c.identity&&f.jsx("span",{className:"attr",children:"IDENTITY"}),c.generated&&f.jsxs("span",{className:"attr",children:["GENERATED (",c.generated,")"]}),t.status==="added"&&f.jsx(py,{b:n,known:r,onJump:i}),t.status==="added"&&(n==null?void 0:n.values)&&f.jsx(my,{values:n.values}),c.comment&&f.jsx("span",{className:"comment",children:c.comment}),f.jsx(tr,{target:o})]})]}),f.jsx(_n,{target:o,colSpan:3})]})}const s=new Map(Uu(t.before).map(c=>[c.key,c.text])),l=Uu(t.after),a=new Set(t.changed??[]),u=[...new Set([...l.map(c=>c.key),...s.keys()])];return f.jsxs(f.Fragment,{children:[f.jsxs("tr",{className:"modified",children:[f.jsx("td",{className:"mark",children:"~"}),f.jsx("td",{className:"cname",children:t.name}),f.jsxs("td",{children:[u.map(c=>{var p;const d=(p=l.find(y=>y.key===c))==null?void 0:p.text,h=s.get(c);return a.has(c)?f.jsxs("span",{className:"attr change",children:[h!==void 0&&f.jsx("del",{children:h}),h!==void 0&&d!==void 0&&f.jsx("span",{className:"arrow",children:"→"}),d!==void 0&&f.jsx("ins",{children:d})]},c):d?f.jsx("span",{className:c==="type"?"attr type":"attr",children:d},c):null}),a.has("comment")&&f.jsxs("span",{className:"attr change",children:[f.jsx("span",{className:"muted",children:"コメント "}),t.before.comment!==void 0&&f.jsx("del",{children:t.before.comment}),f.jsx("span",{className:"arrow",children:"→"}),t.after.comment!==void 0?f.jsx("ins",{children:t.after.comment}):f.jsx("span",{className:"muted",children:"(なし)"})]}),f.jsx(tr,{target:o})]})]}),f.jsx(_n,{target:o,colSpan:3})]})}const gy={primary:"PK",unique:"UNIQUE",check:"CHECK",foreign:"FK",exclude:"EXCLUDE"};function yy({table:e,known:t,onJump:n}){return!e||!t.has(e)?null:f.jsxs("button",{className:"jump link",onClick:()=>n(e),title:`${e} の変更へ移動`,children:["↗ ",e]})}function Lo(e){return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:`row ${e.status??"plain"} ${e.target?"commentable":""}`,children:[f.jsx("span",{className:"mark",children:e.status?fy[e.status]:""}),f.jsx("span",{className:"tag kind",children:e.kind}),f.jsx("span",{className:"rbody",children:e.children}),f.jsx("span",{className:"rname",title:e.name,children:e.name}),e.target&&f.jsx(tr,{target:e.target})]}),e.target&&f.jsx(_n,{target:e.target})]})}const Ll=(e,t,n)=>({kind:e,table:t,name:n});function dp({table:e,c:t,known:n,onJump:r}){var i;return f.jsxs(Lo,{kind:gy[t.kind],name:t.name,target:Ll("constraint",e,t.name),children:[f.jsx("code",{children:t.definition}),f.jsx(yy,{table:(i=t.references)==null?void 0:i.table,known:n,onJump:r})]})}function p0({table:e,change:t,known:n,onJump:r}){var s,l,a;const i=t.after??t.before,o=t.status==="modified"&&((s=t.before)!=null&&s.values)&&((l=t.after)!=null&&l.values)?Il(t.before.values.values,t.after.values.values):null;return f.jsxs(Lo,{status:t.status,kind:gy[t.kind],name:t.name,target:Ll("constraint",e,t.name),children:[t.status!=="modified"?f.jsx("code",{children:i.definition}):o?f.jsxs(f.Fragment,{children:[f.jsxs("code",{children:[t.after.values.column,": "]}),f.jsx("span",{className:"chips",children:o.map(u=>f.jsxs("span",{className:`chip ${u.status}`,children:[u.status==="added"?"+":u.status==="removed"?"−":"",u.value]},u.value))})]}):f.jsxs("span",{className:"change-block",children:[f.jsx("del",{children:t.before.definition}),f.jsx("ins",{children:t.after.definition})]}),t.status!=="removed"&&f.jsx(yy,{table:(a=i.references)==null?void 0:a.table,known:n,onJump:r})]})}function fp({table:e,i:t}){return f.jsx(Lo,{kind:t.unique?"UNIQUE":"INDEX",name:t.name,target:Ll("index",e,t.name),children:f.jsx("code",{children:eo(t)})})}function h0({table:e,change:t}){const n=t.after??t.before;return f.jsx(Lo,{status:t.status,kind:n.unique?"UNIQUE":"INDEX",name:t.name,target:Ll("index",e,t.name),children:t.status==="modified"?f.jsxs("span",{className:"change-block",children:[f.jsxs("del",{children:[t.before.unique?"UNIQUE ":"",eo(t.before)]}),f.jsxs("ins",{children:[t.after.unique?"UNIQUE ":"",eo(t.after)]})]}):f.jsx("code",{children:eo(n)})})}function m0({before:e,after:t,status:n}){return n!=="modified"?f.jsx("div",{className:"table-comment",children:t??e}):f.jsx(Lo,{status:"modified",kind:"COMMENT",name:"",children:f.jsxs("span",{className:"change-block",children:[e!==void 0?f.jsx("del",{children:e}):f.jsx("span",{className:"muted",children:"(なし)"}),t!==void 0?f.jsx("ins",{children:t}):f.jsx("span",{className:"muted",children:"(なし)"})]})})}function g0(e){return f.jsxs("aside",{className:"panel",children:[f.jsxs("div",{className:"panel-head",children:[f.jsx("span",{className:"panel-title",children:e.selection.name}),f.jsx("button",{className:"ds-btn ds-btn-icon",onClick:e.onClose,"aria-label":"閉じる",title:"閉じる(Esc)",children:"×"})]}),f.jsxs("div",{className:"panel-body",children:[e.selection.kind==="type"&&e.type&&f.jsx(v0,{kind:e.type.kind,change:e.type.change}),e.selection.kind==="table"&&(e.change?f.jsx(c0,{table:e.change,reviewed:e.reviewed,onReviewed:e.onReviewed,known:e.known,onJump:e.onJump,highlighted:!1,alwaysOpen:!0},e.change.name):e.erTable?f.jsx(y0,{t:e.erTable}):null),e.values.length>0&&f.jsxs("div",{className:"panel-section",children:[f.jsx("div",{className:"section-title",children:"値の変化"}),e.values.map((t,n)=>f.jsx(x0,{v:t},n))]})]})]})}function y0({t:e}){const t=Hu(e.name);return f.jsxs("div",{className:"unchanged-table",children:[f.jsxs("p",{className:"muted unchanged-note",children:["このテーブルは変更されていません。",f.jsx(tr,{target:t,label:"テーブル全体"})]}),f.jsx(_n,{target:t}),f.jsx("table",{className:"cols",children:f.jsx("tbody",{children:e.columns.map(n=>f.jsx(Vu,{table:e.name,c:{name:n.name,type:n.type,notNull:n.notNull},badges:{primary:n.primary,unique:!1,references:e.foreignKeys.filter(r=>r.columns.length===1&&r.columns[0]===n.name).map(r=>({table:r.table,columns:r.refColumns}))},known:new Set,onJump:()=>{}},n.name))})})]})}function x0({v:e}){const t=ly(e),n=Il(e.before,e.after),r=e.source==="check"?{kind:"value",table:e.table,name:e.column??""}:{kind:"type",name:e.type??""};return f.jsxs("div",{className:"value-row commentable",children:[f.jsx(tr,{target:r,label:e.source==="check"?`${e.column} の値`:void 0}),f.jsxs("div",{className:"value-head",children:[f.jsx("span",{className:"vname",children:t.label}),f.jsx("span",{className:"tag kind",children:e.source==="check"?"CHECK":e.source==="enum"?"ENUM 型":"DOMAIN"}),e.constraint&&f.jsx("span",{className:"muted",children:e.constraint}),e.status==="added"&&f.jsx("span",{className:"note",children:"値の制限が付きました"}),e.status==="removed"&&f.jsx("span",{className:"note",children:"値の制限がなくなりました"})]}),f.jsx("div",{className:"chips",children:n.map(i=>f.jsxs("span",{className:`chip ${e.status==="added"?"same":i.status}`,children:[e.status==="modified"&&i.status==="added"?"+":i.status==="removed"?"−":"",i.value]},i.value))}),e.usedBy&&e.usedBy.length>0&&f.jsxs("div",{className:"muted used",children:["使用しているカラム: ",e.usedBy.join(", ")]}),f.jsx(_n,{target:r})]})}function v0({kind:e,change:t}){const n=t.before&&"values"in t.before?t.before.values:void 0,r=t.after&&"values"in t.after?t.after.values:void 0,i=t.after??t.before,o={kind:"type",name:t.name};return f.jsxs("div",{className:"value-row commentable",children:[f.jsx(tr,{target:o}),f.jsxs("div",{className:`value-head tinted ${t.status}`,children:[f.jsx("span",{className:"vname",children:t.name}),f.jsx("span",{className:"tag kind",children:e})]}),e==="ENUM 型"?f.jsx("div",{className:"chips",children:Il(t.status==="added"?void 0:n,t.status==="removed"?n:r).map(s=>f.jsxs("span",{className:`chip ${t.status==="modified"?s.status:"same"}`,children:[t.status==="modified"&&s.status==="added"?"+":s.status==="removed"&&t.status==="modified"?"−":"",s.value]},s.value))}):i&&f.jsx("div",{className:"domain",children:t.status==="modified"&&t.before&&t.after&&"type"in t.before&&"type"in t.after?f.jsxs("span",{className:"change-block",children:[f.jsxs("del",{children:[t.before.type,t.before.notNull?" NOT NULL":"",t.before.checks.map(s=>` ${s.definition}`).join("")]}),f.jsxs("ins",{children:[t.after.type,t.after.notNull?" NOT NULL":"",t.after.checks.map(s=>` ${s.definition}`).join("")]})]}):f.jsxs("code",{children:[i.type,i.notNull?" NOT NULL":"",i.checks.map(s=>` ${s.definition}`).join("")]})}),f.jsx(_n,{target:o})]})}var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),on=$e((e,t)=>{var n=Object.defineProperty,r=(R,M,W)=>M in R?n(R,M,{enumerable:!0,configurable:!0,writable:!0,value:W}):R[M]=W,i=(R,M)=>()=>(M||R((M={exports:{}}).exports,M),M.exports),o=(R,M,W)=>r(R,typeof M!="symbol"?M+"":M,W),s=i((R,M)=>{var W="\0",K="\0",G="",D=class{constructor(I){o(this,"_isDirected",!0),o(this,"_isMultigraph",!1),o(this,"_isCompound",!1),o(this,"_label"),o(this,"_defaultNodeLabelFn",()=>{}),o(this,"_defaultEdgeLabelFn",()=>{}),o(this,"_nodes",{}),o(this,"_in",{}),o(this,"_preds",{}),o(this,"_out",{}),o(this,"_sucs",{}),o(this,"_edgeObjs",{}),o(this,"_edgeLabels",{}),o(this,"_nodeCount",0),o(this,"_edgeCount",0),o(this,"_parent"),o(this,"_children"),I&&(this._isDirected=Object.hasOwn(I,"directed")?I.directed:!0,this._isMultigraph=Object.hasOwn(I,"multigraph")?I.multigraph:!1,this._isCompound=Object.hasOwn(I,"compound")?I.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[K]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(I){return this._label=I,this}graph(){return this._label}setDefaultNodeLabel(I){return this._defaultNodeLabelFn=I,typeof I!="function"&&(this._defaultNodeLabelFn=()=>I),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var I=this;return this.nodes().filter(T=>Object.keys(I._in[T]).length===0)}sinks(){var I=this;return this.nodes().filter(T=>Object.keys(I._out[T]).length===0)}setNodes(I,T){var z=arguments,q=this;return I.forEach(function(Q){z.length>1?q.setNode(Q,T):q.setNode(Q)}),this}setNode(I,T){return Object.hasOwn(this._nodes,I)?(arguments.length>1&&(this._nodes[I]=T),this):(this._nodes[I]=arguments.length>1?T:this._defaultNodeLabelFn(I),this._isCompound&&(this._parent[I]=K,this._children[I]={},this._children[K][I]=!0),this._in[I]={},this._preds[I]={},this._out[I]={},this._sucs[I]={},++this._nodeCount,this)}node(I){return this._nodes[I]}hasNode(I){return Object.hasOwn(this._nodes,I)}removeNode(I){var T=this;if(Object.hasOwn(this._nodes,I)){var z=q=>T.removeEdge(T._edgeObjs[q]);delete this._nodes[I],this._isCompound&&(this._removeFromParentsChildList(I),delete this._parent[I],this.children(I).forEach(function(q){T.setParent(q)}),delete this._children[I]),Object.keys(this._in[I]).forEach(z),delete this._in[I],delete this._preds[I],Object.keys(this._out[I]).forEach(z),delete this._out[I],delete this._sucs[I],--this._nodeCount}return this}setParent(I,T){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(T===void 0)T=K;else{T+="";for(var z=T;z!==void 0;z=this.parent(z))if(z===I)throw new Error("Setting "+T+" as parent of "+I+" would create a cycle");this.setNode(T)}return this.setNode(I),this._removeFromParentsChildList(I),this._parent[I]=T,this._children[T][I]=!0,this}_removeFromParentsChildList(I){delete this._children[this._parent[I]][I]}parent(I){if(this._isCompound){var T=this._parent[I];if(T!==K)return T}}children(I=K){if(this._isCompound){var T=this._children[I];if(T)return Object.keys(T)}else{if(I===K)return this.nodes();if(this.hasNode(I))return[]}}predecessors(I){var T=this._preds[I];if(T)return Object.keys(T)}successors(I){var T=this._sucs[I];if(T)return Object.keys(T)}neighbors(I){var T=this.predecessors(I);if(T){let q=new Set(T);for(var z of this.successors(I))q.add(z);return Array.from(q.values())}}isLeaf(I){var T;return this.isDirected()?T=this.successors(I):T=this.neighbors(I),T.length===0}filterNodes(I){var T=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});T.setGraph(this.graph());var z=this;Object.entries(this._nodes).forEach(function([re,P]){I(re)&&T.setNode(re,P)}),Object.values(this._edgeObjs).forEach(function(re){T.hasNode(re.v)&&T.hasNode(re.w)&&T.setEdge(re,z.edge(re))});var q={};function Q(re){var P=z.parent(re);return P===void 0||T.hasNode(P)?(q[re]=P,P):P in q?q[P]:Q(P)}return this._isCompound&&T.nodes().forEach(re=>T.setParent(re,Q(re))),T}setDefaultEdgeLabel(I){return this._defaultEdgeLabelFn=I,typeof I!="function"&&(this._defaultEdgeLabelFn=()=>I),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(I,T){var z=this,q=arguments;return I.reduce(function(Q,re){return q.length>1?z.setEdge(Q,re,T):z.setEdge(Q,re),re}),this}setEdge(){var I,T,z,q,Q=!1,re=arguments[0];typeof re=="object"&&re!==null&&"v"in re?(I=re.v,T=re.w,z=re.name,arguments.length===2&&(q=arguments[1],Q=!0)):(I=re,T=arguments[1],z=arguments[3],arguments.length>2&&(q=arguments[2],Q=!0)),I=""+I,T=""+T,z!==void 0&&(z=""+z);var P=Y(this._isDirected,I,T,z);if(Object.hasOwn(this._edgeLabels,P))return Q&&(this._edgeLabels[P]=q),this;if(z!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(I),this.setNode(T),this._edgeLabels[P]=Q?q:this._defaultEdgeLabelFn(I,T,z);var te=X(this._isDirected,I,T,z);return I=te.v,T=te.w,Object.freeze(te),this._edgeObjs[P]=te,U(this._preds[T],I),U(this._sucs[I],T),this._in[T][P]=te,this._out[I][P]=te,this._edgeCount++,this}edge(I,T,z){var q=arguments.length===1?j(this._isDirected,arguments[0]):Y(this._isDirected,I,T,z);return this._edgeLabels[q]}edgeAsObj(){let I=this.edge(...arguments);return typeof I!="object"?{label:I}:I}hasEdge(I,T,z){var q=arguments.length===1?j(this._isDirected,arguments[0]):Y(this._isDirected,I,T,z);return Object.hasOwn(this._edgeLabels,q)}removeEdge(I,T,z){var q=arguments.length===1?j(this._isDirected,arguments[0]):Y(this._isDirected,I,T,z),Q=this._edgeObjs[q];return Q&&(I=Q.v,T=Q.w,delete this._edgeLabels[q],delete this._edgeObjs[q],b(this._preds[T],I),b(this._sucs[I],T),delete this._in[T][q],delete this._out[I][q],this._edgeCount--),this}inEdges(I,T){return this.isDirected()?this.filterEdges(this._in[I],I,T):this.nodeEdges(I,T)}outEdges(I,T){return this.isDirected()?this.filterEdges(this._out[I],I,T):this.nodeEdges(I,T)}nodeEdges(I,T){if(I in this._nodes)return this.filterEdges({...this._in[I],...this._out[I]},I,T)}filterEdges(I,T,z){if(I){var q=Object.values(I);return z?q.filter(function(Q){return Q.v===T&&Q.w===z||Q.v===z&&Q.w===T}):q}}};function U(I,T){I[T]?I[T]++:I[T]=1}function b(I,T){--I[T]||delete I[T]}function Y(I,T,z,q){var Q=""+T,re=""+z;if(!I&&Q>re){var P=Q;Q=re,re=P}return Q+G+re+G+(q===void 0?W:q)}function X(I,T,z,q){var Q=""+T,re=""+z;if(!I&&Q>re){var P=Q;Q=re,re=P}var te={v:Q,w:re};return q&&(te.name=q),te}function j(I,T){return Y(I,T.v,T.w,T.name)}M.exports=D}),l=i((R,M)=>{M.exports="3.0.2"}),a=i((R,M)=>{M.exports={Graph:s(),version:l()}}),u=i((R,M)=>{var W=s();M.exports={write:K,read:U};function K(b){var Y={options:{directed:b.isDirected(),multigraph:b.isMultigraph(),compound:b.isCompound()},nodes:G(b),edges:D(b)};return b.graph()!==void 0&&(Y.value=structuredClone(b.graph())),Y}function G(b){return b.nodes().map(function(Y){var X=b.node(Y),j=b.parent(Y),I={v:Y};return X!==void 0&&(I.value=X),j!==void 0&&(I.parent=j),I})}function D(b){return b.edges().map(function(Y){var X=b.edge(Y),j={v:Y.v,w:Y.w};return Y.name!==void 0&&(j.name=Y.name),X!==void 0&&(j.value=X),j})}function U(b){var Y=new W(b.options).setGraph(b.value);return b.nodes.forEach(function(X){Y.setNode(X.v,X.value),X.parent&&Y.setParent(X.v,X.parent)}),b.edges.forEach(function(X){Y.setEdge({v:X.v,w:X.w,name:X.name},X.value)}),Y}}),c=i((R,M)=>{M.exports=K;var W=()=>1;function K(D,U,b,Y){return G(D,String(U),b||W,Y||function(X){return D.outEdges(X)})}function G(D,U,b,Y){var X={},j=!0,I=0,T=D.nodes(),z=function(P){var te=b(P);X[P.v].distance+te<X[P.w].distance&&(X[P.w]={distance:X[P.v].distance+te,predecessor:P.v},j=!0)},q=function(){T.forEach(function(P){Y(P).forEach(function(te){var ce=te.v===P?te.v:te.w,Ae=ce===te.v?te.w:te.v;z({v:ce,w:Ae})})})};T.forEach(function(P){var te=P===U?0:Number.POSITIVE_INFINITY;X[P]={distance:te}});for(var Q=T.length,re=1;re<Q&&(j=!1,I++,q(),!!j);re++);if(I===Q-1&&(j=!1,q(),j))throw new Error("The graph contains a negative weight cycle");return X}}),d=i((R,M)=>{M.exports=W;function W(K){var G={},D=[],U;function b(Y){Object.hasOwn(G,Y)||(G[Y]=!0,U.push(Y),K.successors(Y).forEach(b),K.predecessors(Y).forEach(b))}return K.nodes().forEach(function(Y){U=[],b(Y),U.length&&D.push(U)}),D}}),h=i((R,M)=>{var W=class{constructor(){o(this,"_arr",[]),o(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(K){return K.key})}has(K){return Object.hasOwn(this._keyIndices,K)}priority(K){var G=this._keyIndices[K];if(G!==void 0)return this._arr[G].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(K,G){var D=this._keyIndices;if(K=String(K),!Object.hasOwn(D,K)){var U=this._arr,b=U.length;return D[K]=b,U.push({key:K,priority:G}),this._decrease(b),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var K=this._arr.pop();return delete this._keyIndices[K.key],this._heapify(0),K.key}decrease(K,G){var D=this._keyIndices[K];if(G>this._arr[D].priority)throw new Error("New priority is greater than current priority. Key: "+K+" Old: "+this._arr[D].priority+" New: "+G);this._arr[D].priority=G,this._decrease(D)}_heapify(K){var G=this._arr,D=2*K,U=D+1,b=K;D<G.length&&(b=G[D].priority<G[b].priority?D:b,U<G.length&&(b=G[U].priority<G[b].priority?U:b),b!==K&&(this._swap(K,b),this._heapify(b)))}_decrease(K){for(var G=this._arr,D=G[K].priority,U;K!==0&&(U=K>>1,!(G[U].priority<D));)this._swap(K,U),K=U}_swap(K,G){var D=this._arr,U=this._keyIndices,b=D[K],Y=D[G];D[K]=Y,D[G]=b,U[Y.key]=K,U[b.key]=G}};M.exports=W}),p=i((R,M)=>{var W=h();M.exports=G;var K=()=>1;function G(U,b,Y,X){var j=function(I){return U.outEdges(I)};return D(U,String(b),Y||K,X||j)}function D(U,b,Y,X){var j={},I=new W,T,z,q=function(Q){var re=Q.v!==T?Q.v:Q.w,P=j[re],te=Y(Q),ce=z.distance+te;if(te<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+Q+" Weight: "+te);ce<P.distance&&(P.distance=ce,P.predecessor=T,I.decrease(re,ce))};for(U.nodes().forEach(function(Q){var re=Q===b?0:Number.POSITIVE_INFINITY;j[Q]={distance:re},I.add(Q,re)});I.size()>0&&(T=I.removeMin(),z=j[T],z.distance!==Number.POSITIVE_INFINITY);)X(T).forEach(q);return j}}),y=i((R,M)=>{var W=p();M.exports=K;function K(G,D,U){return G.nodes().reduce(function(b,Y){return b[Y]=W(G,Y,D,U),b},{})}}),x=i((R,M)=>{M.exports=W;function W(G,D,U){if(G[D].predecessor!==void 0)throw new Error("Invalid source vertex");if(G[U].predecessor===void 0&&U!==D)throw new Error("Invalid destination vertex");return{weight:G[U].distance,path:K(G,D,U)}}function K(G,D,U){for(var b=[],Y=U;Y!==D;)b.push(Y),Y=G[Y].predecessor;return b.push(D),b.reverse()}}),E=i((R,M)=>{M.exports=W;function W(K){var G=0,D=[],U={},b=[];function Y(X){var j=U[X]={onStack:!0,lowlink:G,index:G++};if(D.push(X),K.successors(X).forEach(function(z){Object.hasOwn(U,z)?U[z].onStack&&(j.lowlink=Math.min(j.lowlink,U[z].index)):(Y(z),j.lowlink=Math.min(j.lowlink,U[z].lowlink))}),j.lowlink===j.index){var I=[],T;do T=D.pop(),U[T].onStack=!1,I.push(T);while(X!==T);b.push(I)}}return K.nodes().forEach(function(X){Object.hasOwn(U,X)||Y(X)}),b}}),v=i((R,M)=>{var W=E();M.exports=K;function K(G){return W(G).filter(function(D){return D.length>1||D.length===1&&G.hasEdge(D[0],D[0])})}}),m=i((R,M)=>{M.exports=K;var W=()=>1;function K(D,U,b){return G(D,U||W,b||function(Y){return D.outEdges(Y)})}function G(D,U,b){var Y={},X=D.nodes();return X.forEach(function(j){Y[j]={},Y[j][j]={distance:0},X.forEach(function(I){j!==I&&(Y[j][I]={distance:Number.POSITIVE_INFINITY})}),b(j).forEach(function(I){var T=I.v===j?I.w:I.v,z=U(I);Y[j][T]={distance:z,predecessor:j}})}),X.forEach(function(j){var I=Y[j];X.forEach(function(T){var z=Y[T];X.forEach(function(q){var Q=z[j],re=I[q],P=z[q],te=Q.distance+re.distance;te<P.distance&&(P.distance=te,P.predecessor=re.predecessor)})})}),Y}}),g=i((R,M)=>{function W(G){var D={},U={},b=[];function Y(X){if(Object.hasOwn(U,X))throw new K;Object.hasOwn(D,X)||(U[X]=!0,D[X]=!0,G.predecessors(X).forEach(Y),delete U[X],b.push(X))}if(G.sinks().forEach(Y),Object.keys(D).length!==G.nodeCount())throw new K;return b}var K=class extends Error{constructor(){super(...arguments)}};M.exports=W,W.CycleException=K}),w=i((R,M)=>{var W=g();M.exports=K;function K(G){try{W(G)}catch(D){if(D instanceof W.CycleException)return!1;throw D}return!0}}),C=i((R,M)=>{M.exports=W;function W(G,D,U,b,Y){Array.isArray(D)||(D=[D]);var X=(G.isDirected()?G.successors:G.neighbors).bind(G),j={};return D.forEach(function(I){if(!G.hasNode(I))throw new Error("Graph does not have node: "+I);Y=K(G,I,U==="post",j,X,b,Y)}),Y}function K(G,D,U,b,Y,X,j){return Object.hasOwn(b,D)||(b[D]=!0,U||(j=X(j,D)),Y(D).forEach(function(I){j=K(G,I,U,b,Y,X,j)}),U&&(j=X(j,D))),j}}),S=i((R,M)=>{var W=C();M.exports=K;function K(G,D,U){return W(G,D,U,function(b,Y){return b.push(Y),b},[])}}),$=i((R,M)=>{var W=S();M.exports=K;function K(G,D){return W(G,D,"post")}}),O=i((R,M)=>{var W=S();M.exports=K;function K(G,D){return W(G,D,"pre")}}),N=i((R,M)=>{var W=s(),K=h();M.exports=G;function G(D,U){var b=new W,Y={},X=new K,j;function I(z){var q=z.v===j?z.w:z.v,Q=X.priority(q);if(Q!==void 0){var re=U(z);re<Q&&(Y[q]=j,X.decrease(q,re))}}if(D.nodeCount()===0)return b;D.nodes().forEach(function(z){X.add(z,Number.POSITIVE_INFINITY),b.setNode(z)}),X.decrease(D.nodes()[0],0);for(var T=!1;X.size()>0;){if(j=X.removeMin(),Object.hasOwn(Y,j))b.setEdge(j,Y[j]);else{if(T)throw new Error("Input graph is not connected: "+D);T=!0}D.nodeEdges(j).forEach(I)}return b}}),k=i((R,M)=>{var W=p(),K=c();M.exports=G;function G(U,b,Y,X){return D(U,b,Y,X||function(j){return U.outEdges(j)})}function D(U,b,Y,X){if(Y===void 0)return W(U,b,Y,X);for(var j=!1,I=U.nodes(),T=0;T<I.length;T++){for(var z=X(I[T]),q=0;q<z.length;q++){var Q=z[q],re=Q.v===I[T]?Q.v:Q.w,P=re===Q.v?Q.w:Q.v;Y({v:re,w:P})<0&&(j=!0)}if(j)return K(U,b,Y,X)}return W(U,b,Y,X)}}),L=i((R,M)=>{M.exports={bellmanFord:c(),components:d(),dijkstra:p(),dijkstraAll:y(),extractPath:x(),findCycles:v(),floydWarshall:m(),isAcyclic:w(),postorder:$(),preorder:O(),prim:N(),shortestPaths:k(),reduce:C(),tarjan:E(),topsort:g()}}),_=a();t.exports={Graph:_.Graph,json:u(),alg:L(),version:_.version}}),w0=$e((e,t)=>{var n=class{constructor(){let o={};o._next=o._prev=o,this._sentinel=o}dequeue(){let o=this._sentinel,s=o._prev;if(s!==o)return r(s),s}enqueue(o){let s=this._sentinel;o._prev&&o._next&&r(o),o._next=s._next,s._next._prev=o,s._next=o,o._prev=s}toString(){let o=[],s=this._sentinel,l=s._prev;for(;l!==s;)o.push(JSON.stringify(l,i)),l=l._prev;return"["+o.join(", ")+"]"}};function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function i(o,s){if(o!=="_next"&&o!=="_prev")return s}t.exports=n}),k0=$e((e,t)=>{var n=on().Graph,r=w0();t.exports=o;var i=()=>1;function o(d,h){if(d.nodeCount()<=1)return[];let p=a(d,h||i);return s(p.graph,p.buckets,p.zeroIdx).flatMap(y=>d.outEdges(y.v,y.w))}function s(d,h,p){let y=[],x=h[h.length-1],E=h[0],v;for(;d.nodeCount();){for(;v=E.dequeue();)l(d,h,p,v);for(;v=x.dequeue();)l(d,h,p,v);if(d.nodeCount()){for(let m=h.length-2;m>0;--m)if(v=h[m].dequeue(),v){y=y.concat(l(d,h,p,v,!0));break}}}return y}function l(d,h,p,y,x){let E=x?[]:void 0;return d.inEdges(y.v).forEach(v=>{let m=d.edge(v),g=d.node(v.v);x&&E.push({v:v.v,w:v.w}),g.out-=m,u(h,p,g)}),d.outEdges(y.v).forEach(v=>{let m=d.edge(v),g=v.w,w=d.node(g);w.in-=m,u(h,p,w)}),d.removeNode(y.v),E}function a(d,h){let p=new n,y=0,x=0;d.nodes().forEach(m=>{p.setNode(m,{v:m,in:0,out:0})}),d.edges().forEach(m=>{let g=p.edge(m.v,m.w)||0,w=h(m),C=g+w;p.setEdge(m.v,m.w,C),x=Math.max(x,p.node(m.v).out+=w),y=Math.max(y,p.node(m.w).in+=w)});let E=c(x+y+3).map(()=>new r),v=y+1;return p.nodes().forEach(m=>{u(E,v,p.node(m))}),{graph:p,buckets:E,zeroIdx:v}}function u(d,h,p){p.out?p.in?d[p.out-p.in+h].enqueue(p):d[d.length-1].enqueue(p):d[0].enqueue(p)}function c(d){let h=[];for(let p=0;p<d;p++)h.push(p);return h}}),qe=$e((e,t)=>{var n=on().Graph;t.exports={addBorderNode:h,addDummyNode:r,applyWithChunking:x,asNonCompoundGraph:o,buildLayerMatrix:u,intersectRect:a,mapValues:O,maxRank:E,normalizeRanks:c,notime:g,partition:v,pick:$,predecessorWeights:l,range:S,removeEmptyRanks:d,simplify:i,successorWeights:s,time:m,uniqueId:C,zipObject:N};function r(k,L,_,R){for(var M=R;k.hasNode(M);)M=C(R);return _.dummy=L,k.setNode(M,_),M}function i(k){let L=new n().setGraph(k.graph());return k.nodes().forEach(_=>L.setNode(_,k.node(_))),k.edges().forEach(_=>{let R=L.edge(_.v,_.w)||{weight:0,minlen:1},M=k.edge(_);L.setEdge(_.v,_.w,{weight:R.weight+M.weight,minlen:Math.max(R.minlen,M.minlen)})}),L}function o(k){let L=new n({multigraph:k.isMultigraph()}).setGraph(k.graph());return k.nodes().forEach(_=>{k.children(_).length||L.setNode(_,k.node(_))}),k.edges().forEach(_=>{L.setEdge(_,k.edge(_))}),L}function s(k){let L=k.nodes().map(_=>{let R={};return k.outEdges(_).forEach(M=>{R[M.w]=(R[M.w]||0)+k.edge(M).weight}),R});return N(k.nodes(),L)}function l(k){let L=k.nodes().map(_=>{let R={};return k.inEdges(_).forEach(M=>{R[M.v]=(R[M.v]||0)+k.edge(M).weight}),R});return N(k.nodes(),L)}function a(k,L){let _=k.x,R=k.y,M=L.x-_,W=L.y-R,K=k.width/2,G=k.height/2;if(!M&&!W)throw new Error("Not possible to find intersection inside of the rectangle");let D,U;return Math.abs(W)*K>Math.abs(M)*G?(W<0&&(G=-G),D=G*M/W,U=G):(M<0&&(K=-K),D=K,U=K*W/M),{x:_+D,y:R+U}}function u(k){let L=S(E(k)+1).map(()=>[]);return k.nodes().forEach(_=>{let R=k.node(_),M=R.rank;M!==void 0&&(L[M][R.order]=_)}),L}function c(k){let L=k.nodes().map(R=>{let M=k.node(R).rank;return M===void 0?Number.MAX_VALUE:M}),_=x(Math.min,L);k.nodes().forEach(R=>{let M=k.node(R);Object.hasOwn(M,"rank")&&(M.rank-=_)})}function d(k){let L=k.nodes().map(K=>k.node(K).rank).filter(K=>K!==void 0),_=x(Math.min,L),R=[];k.nodes().forEach(K=>{let G=k.node(K).rank-_;R[G]||(R[G]=[]),R[G].push(K)});let M=0,W=k.graph().nodeRankFactor;Array.from(R).forEach((K,G)=>{K===void 0&&G%W!==0?--M:K!==void 0&&M&&K.forEach(D=>k.node(D).rank+=M)})}function h(k,L,_,R){let M={width:0,height:0};return arguments.length>=4&&(M.rank=_,M.order=R),r(k,"border",M,L)}function p(k,L=y){let _=[];for(let R=0;R<k.length;R+=L){let M=k.slice(R,R+L);_.push(M)}return _}var y=65535;function x(k,L){if(L.length>y){let _=p(L);return k.apply(null,_.map(R=>k.apply(null,R)))}else return k.apply(null,L)}function E(k){let L=k.nodes().map(_=>{let R=k.node(_).rank;return R===void 0?Number.MIN_VALUE:R});return x(Math.max,L)}function v(k,L){let _={lhs:[],rhs:[]};return k.forEach(R=>{L(R)?_.lhs.push(R):_.rhs.push(R)}),_}function m(k,L){let _=Date.now();try{return L()}finally{console.log(k+" time: "+(Date.now()-_)+"ms")}}function g(k,L){return L()}var w=0;function C(k){var L=++w;return k+(""+L)}function S(k,L,_=1){L==null&&(L=k,k=0);let R=W=>W<L;_<0&&(R=W=>L<W);let M=[];for(let W=k;R(W);W+=_)M.push(W);return M}function $(k,L){let _={};for(let R of L)k[R]!==void 0&&(_[R]=k[R]);return _}function O(k,L){let _=L;return typeof L=="string"&&(_=R=>R[L]),Object.entries(k).reduce((R,[M,W])=>(R[M]=_(W,M),R),{})}function N(k,L){return k.reduce((_,R,M)=>(_[R]=L[M],_),{})}}),b0=$e((e,t)=>{var n=k0(),r=qe().uniqueId;t.exports={run:i,undo:s};function i(l){(l.graph().acyclicer==="greedy"?n(l,a(l)):o(l)).forEach(u=>{let c=l.edge(u);l.removeEdge(u),c.forwardName=u.name,c.reversed=!0,l.setEdge(u.w,u.v,c,r("rev"))});function a(u){return c=>u.edge(c).weight}}function o(l){let a=[],u={},c={};function d(h){Object.hasOwn(c,h)||(c[h]=!0,u[h]=!0,l.outEdges(h).forEach(p=>{Object.hasOwn(u,p.w)?a.push(p):d(p.w)}),delete u[h])}return l.nodes().forEach(d),a}function s(l){l.edges().forEach(a=>{let u=l.edge(a);if(u.reversed){l.removeEdge(a);let c=u.forwardName;delete u.reversed,delete u.forwardName,l.setEdge(a.w,a.v,u,c)}})}}),E0=$e((e,t)=>{var n=qe();t.exports={run:r,undo:o};function r(s){s.graph().dummyChains=[],s.edges().forEach(l=>i(s,l))}function i(s,l){let a=l.v,u=s.node(a).rank,c=l.w,d=s.node(c).rank,h=l.name,p=s.edge(l),y=p.labelRank;if(d===u+1)return;s.removeEdge(l);let x,E,v;for(v=0,++u;u<d;++v,++u)p.points=[],E={width:0,height:0,edgeLabel:p,edgeObj:l,rank:u},x=n.addDummyNode(s,"edge",E,"_d"),u===y&&(E.width=p.width,E.height=p.height,E.dummy="edge-label",E.labelpos=p.labelpos),s.setEdge(a,x,{weight:p.weight},h),v===0&&s.graph().dummyChains.push(x),a=x;s.setEdge(a,c,{weight:p.weight},h)}function o(s){s.graph().dummyChains.forEach(l=>{let a=s.node(l),u=a.edgeLabel,c;for(s.setEdge(a.edgeObj,u);a.dummy;)c=s.successors(l)[0],s.removeNode(l),u.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(u.x=a.x,u.y=a.y,u.width=a.width,u.height=a.height),l=c,a=s.node(l)})}}),Js=$e((e,t)=>{var{applyWithChunking:n}=qe();t.exports={longestPath:r,slack:i};function r(o){var s={};function l(a){var u=o.node(a);if(Object.hasOwn(s,a))return u.rank;s[a]=!0;let c=o.outEdges(a).map(h=>h==null?Number.POSITIVE_INFINITY:l(h.w)-o.edge(h).minlen);var d=n(Math.min,c);return d===Number.POSITIVE_INFINITY&&(d=0),u.rank=d}o.sources().forEach(l)}function i(o,s){return o.node(s.w).rank-o.node(s.v).rank-o.edge(s).minlen}}),xy=$e((e,t)=>{var n=on().Graph,r=Js().slack;t.exports=i;function i(a){var u=new n({directed:!1}),c=a.nodes()[0],d=a.nodeCount();u.setNode(c,{});for(var h,p;o(u,a)<d;)h=s(u,a),p=u.hasNode(h.v)?r(a,h):-r(a,h),l(u,a,p);return u}function o(a,u){function c(d){u.nodeEdges(d).forEach(h=>{var p=h.v,y=d===p?h.w:p;!a.hasNode(y)&&!r(u,h)&&(a.setNode(y,{}),a.setEdge(d,y,{}),c(y))})}return a.nodes().forEach(c),a.nodeCount()}function s(a,u){return u.edges().reduce((c,d)=>{let h=Number.POSITIVE_INFINITY;return a.hasNode(d.v)!==a.hasNode(d.w)&&(h=r(u,d)),h<c[0]?[h,d]:c},[Number.POSITIVE_INFINITY,null])[1]}function l(a,u,c){a.nodes().forEach(d=>u.node(d).rank+=c)}}),S0=$e((e,t)=>{var n=xy(),r=Js().slack,i=Js().longestPath,o=on().alg.preorder,s=on().alg.postorder,l=qe().simplify;t.exports=a,a.initLowLimValues=h,a.initCutValues=u,a.calcCutValue=d,a.leaveEdge=y,a.enterEdge=x,a.exchangeEdges=E;function a(w){w=l(w),i(w);var C=n(w);h(C),u(C,w);for(var S,$;S=y(C);)$=x(C,w,S),E(C,w,S,$)}function u(w,C){var S=s(w,w.nodes());S=S.slice(0,S.length-1),S.forEach($=>c(w,C,$))}function c(w,C,S){var $=w.node(S),O=$.parent;w.edge(S,O).cutvalue=d(w,C,S)}function d(w,C,S){var $=w.node(S),O=$.parent,N=!0,k=C.edge(S,O),L=0;return k||(N=!1,k=C.edge(O,S)),L=k.weight,C.nodeEdges(S).forEach(_=>{var R=_.v===S,M=R?_.w:_.v;if(M!==O){var W=R===N,K=C.edge(_).weight;if(L+=W?K:-K,m(w,S,M)){var G=w.edge(S,M).cutvalue;L+=W?-G:G}}}),L}function h(w,C){arguments.length<2&&(C=w.nodes()[0]),p(w,{},1,C)}function p(w,C,S,$,O){var N=S,k=w.node($);return C[$]=!0,w.neighbors($).forEach(L=>{Object.hasOwn(C,L)||(S=p(w,C,S,L,$))}),k.low=N,k.lim=S++,O?k.parent=O:delete k.parent,S}function y(w){return w.edges().find(C=>w.edge(C).cutvalue<0)}function x(w,C,S){var $=S.v,O=S.w;C.hasEdge($,O)||($=S.w,O=S.v);var N=w.node($),k=w.node(O),L=N,_=!1;N.lim>k.lim&&(L=k,_=!0);var R=C.edges().filter(M=>_===g(w,w.node(M.v),L)&&_!==g(w,w.node(M.w),L));return R.reduce((M,W)=>r(C,W)<r(C,M)?W:M)}function E(w,C,S,$){var O=S.v,N=S.w;w.removeEdge(O,N),w.setEdge($.v,$.w,{}),h(w),u(w,C),v(w,C)}function v(w,C){var S=w.nodes().find(O=>!C.node(O).parent),$=o(w,S);$=$.slice(1),$.forEach(O=>{var N=w.node(O).parent,k=C.edge(O,N),L=!1;k||(k=C.edge(N,O),L=!0),C.node(O).rank=C.node(N).rank+(L?k.minlen:-k.minlen)})}function m(w,C,S){return w.hasEdge(C,S)}function g(w,C,S){return S.low<=C.lim&&C.lim<=S.lim}}),C0=$e((e,t)=>{var n=Js(),r=n.longestPath,i=xy(),o=S0();t.exports=s;function s(c){var d=c.graph().ranker;if(d instanceof Function)return d(c);switch(c.graph().ranker){case"network-simplex":u(c);break;case"tight-tree":a(c);break;case"longest-path":l(c);break;case"none":break;default:u(c)}}var l=r;function a(c){r(c),i(c)}function u(c){o(c)}}),N0=$e((e,t)=>{t.exports=n;function n(o){let s=i(o);o.graph().dummyChains.forEach(l=>{let a=o.node(l),u=a.edgeObj,c=r(o,s,u.v,u.w),d=c.path,h=c.lca,p=0,y=d[p],x=!0;for(;l!==u.w;){if(a=o.node(l),x){for(;(y=d[p])!==h&&o.node(y).maxRank<a.rank;)p++;y===h&&(x=!1)}if(!x){for(;p<d.length-1&&o.node(y=d[p+1]).minRank<=a.rank;)p++;y=d[p]}o.setParent(l,y),l=o.successors(l)[0]}})}function r(o,s,l,a){let u=[],c=[],d=Math.min(s[l].low,s[a].low),h=Math.max(s[l].lim,s[a].lim),p,y;p=l;do p=o.parent(p),u.push(p);while(p&&(s[p].low>d||h>s[p].lim));for(y=p,p=a;(p=o.parent(p))!==y;)c.push(p);return{path:u.concat(c.reverse()),lca:y}}function i(o){let s={},l=0;function a(u){let c=l;o.children(u).forEach(a),s[u]={low:c,lim:l++}}return o.children().forEach(a),s}}),j0=$e((e,t)=>{var n=qe();t.exports={run:r,cleanup:l};function r(a){let u=n.addDummyNode(a,"root",{},"_root"),c=o(a),d=Object.values(c),h=n.applyWithChunking(Math.max,d)-1,p=2*h+1;a.graph().nestingRoot=u,a.edges().forEach(x=>a.edge(x).minlen*=p);let y=s(a)+1;a.children().forEach(x=>i(a,u,p,y,h,c,x)),a.graph().nodeRankFactor=p}function i(a,u,c,d,h,p,y){let x=a.children(y);if(!x.length){y!==u&&a.setEdge(u,y,{weight:0,minlen:c});return}let E=n.addBorderNode(a,"_bt"),v=n.addBorderNode(a,"_bb"),m=a.node(y);a.setParent(E,y),m.borderTop=E,a.setParent(v,y),m.borderBottom=v,x.forEach(g=>{i(a,u,c,d,h,p,g);let w=a.node(g),C=w.borderTop?w.borderTop:g,S=w.borderBottom?w.borderBottom:g,$=w.borderTop?d:2*d,O=C!==S?1:h-p[y]+1;a.setEdge(E,C,{weight:$,minlen:O,nestingEdge:!0}),a.setEdge(S,v,{weight:$,minlen:O,nestingEdge:!0})}),a.parent(y)||a.setEdge(u,E,{weight:0,minlen:h+p[y]})}function o(a){var u={};function c(d,h){var p=a.children(d);p&&p.length&&p.forEach(y=>c(y,h+1)),u[d]=h}return a.children().forEach(d=>c(d,1)),u}function s(a){return a.edges().reduce((u,c)=>u+a.edge(c).weight,0)}function l(a){var u=a.graph();a.removeNode(u.nestingRoot),delete u.nestingRoot,a.edges().forEach(c=>{var d=a.edge(c);d.nestingEdge&&a.removeEdge(c)})}}),_0=$e((e,t)=>{var n=qe();t.exports=r;function r(o){function s(l){let a=o.children(l),u=o.node(l);if(a.length&&a.forEach(s),Object.hasOwn(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(let c=u.minRank,d=u.maxRank+1;c<d;++c)i(o,"borderLeft","_bl",l,u,c),i(o,"borderRight","_br",l,u,c)}}o.children().forEach(s)}function i(o,s,l,a,u,c){let d={width:0,height:0,rank:c,borderType:s},h=u[s][c-1],p=n.addDummyNode(o,"border",d,l);u[s][c]=p,o.setParent(p,a),h&&o.setEdge(h,p,{weight:1})}}),T0=$e((e,t)=>{t.exports={adjust:n,undo:r};function n(c){let d=c.graph().rankdir.toLowerCase();(d==="lr"||d==="rl")&&i(c)}function r(c){let d=c.graph().rankdir.toLowerCase();(d==="bt"||d==="rl")&&s(c),(d==="lr"||d==="rl")&&(a(c),i(c))}function i(c){c.nodes().forEach(d=>o(c.node(d))),c.edges().forEach(d=>o(c.edge(d)))}function o(c){let d=c.width;c.width=c.height,c.height=d}function s(c){c.nodes().forEach(d=>l(c.node(d))),c.edges().forEach(d=>{let h=c.edge(d);h.points.forEach(l),Object.hasOwn(h,"y")&&l(h)})}function l(c){c.y=-c.y}function a(c){c.nodes().forEach(d=>u(c.node(d))),c.edges().forEach(d=>{let h=c.edge(d);h.points.forEach(u),Object.hasOwn(h,"x")&&u(h)})}function u(c){let d=c.x;c.x=c.y,c.y=d}}),$0=$e((e,t)=>{var n=qe();t.exports=r;function r(i){let o={},s=i.nodes().filter(d=>!i.children(d).length),l=s.map(d=>i.node(d).rank),a=n.applyWithChunking(Math.max,l),u=n.range(a+1).map(()=>[]);function c(d){if(o[d])return;o[d]=!0;let h=i.node(d);u[h.rank].push(d),i.successors(d).forEach(c)}return s.sort((d,h)=>i.node(d).rank-i.node(h).rank).forEach(c),u}}),I0=$e((e,t)=>{var n=qe().zipObject;t.exports=r;function r(o,s){let l=0;for(let a=1;a<s.length;++a)l+=i(o,s[a-1],s[a]);return l}function i(o,s,l){let a=n(l,l.map((y,x)=>x)),u=s.flatMap(y=>o.outEdges(y).map(x=>({pos:a[x.w],weight:o.edge(x).weight})).sort((x,E)=>x.pos-E.pos)),c=1;for(;c<l.length;)c<<=1;let d=2*c-1;c-=1;let h=new Array(d).fill(0),p=0;return u.forEach(y=>{let x=y.pos+c;h[x]+=y.weight;let E=0;for(;x>0;)x%2&&(E+=h[x+1]),x=x-1>>1,h[x]+=y.weight;p+=y.weight*E}),p}}),L0=$e((e,t)=>{t.exports=n;function n(r,i=[]){return i.map(o=>{let s=r.inEdges(o);if(s.length){let l=s.reduce((a,u)=>{let c=r.edge(u),d=r.node(u.v);return{sum:a.sum+c.weight*d.order,weight:a.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:l.sum/l.weight,weight:l.weight}}else return{v:o}})}}),A0=$e((e,t)=>{var n=qe();t.exports=r;function r(s,l){let a={};s.forEach((c,d)=>{let h=a[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:d};c.barycenter!==void 0&&(h.barycenter=c.barycenter,h.weight=c.weight)}),l.edges().forEach(c=>{let d=a[c.v],h=a[c.w];d!==void 0&&h!==void 0&&(h.indegree++,d.out.push(a[c.w]))});let u=Object.values(a).filter(c=>!c.indegree);return i(u)}function i(s){let l=[];function a(c){return d=>{d.merged||(d.barycenter===void 0||c.barycenter===void 0||d.barycenter>=c.barycenter)&&o(c,d)}}function u(c){return d=>{d.in.push(c),--d.indegree===0&&s.push(d)}}for(;s.length;){let c=s.pop();l.push(c),c.in.reverse().forEach(a(c)),c.out.forEach(u(c))}return l.filter(c=>!c.merged).map(c=>n.pick(c,["vs","i","barycenter","weight"]))}function o(s,l){let a=0,u=0;s.weight&&(a+=s.barycenter*s.weight,u+=s.weight),l.weight&&(a+=l.barycenter*l.weight,u+=l.weight),s.vs=l.vs.concat(s.vs),s.barycenter=a/u,s.weight=u,s.i=Math.min(l.i,s.i),l.merged=!0}}),R0=$e((e,t)=>{var n=qe();t.exports=r;function r(s,l){let a=n.partition(s,E=>Object.hasOwn(E,"barycenter")),u=a.lhs,c=a.rhs.sort((E,v)=>v.i-E.i),d=[],h=0,p=0,y=0;u.sort(o(!!l)),y=i(d,c,y),u.forEach(E=>{y+=E.vs.length,d.push(E.vs),h+=E.barycenter*E.weight,p+=E.weight,y=i(d,c,y)});let x={vs:d.flat(!0)};return p&&(x.barycenter=h/p,x.weight=p),x}function i(s,l,a){let u;for(;l.length&&(u=l[l.length-1]).i<=a;)l.pop(),s.push(u.vs),a++;return a}function o(s){return(l,a)=>l.barycenter<a.barycenter?-1:l.barycenter>a.barycenter?1:s?a.i-l.i:l.i-a.i}}),O0=$e((e,t)=>{var n=L0(),r=A0(),i=R0();t.exports=o;function o(a,u,c,d){let h=a.children(u),p=a.node(u),y=p?p.borderLeft:void 0,x=p?p.borderRight:void 0,E={};y&&(h=h.filter(w=>w!==y&&w!==x));let v=n(a,h);v.forEach(w=>{if(a.children(w.v).length){let C=o(a,w.v,c,d);E[w.v]=C,Object.hasOwn(C,"barycenter")&&l(w,C)}});let m=r(v,c);s(m,E);let g=i(m,d);if(y&&(g.vs=[y,g.vs,x].flat(!0),a.predecessors(y).length)){let w=a.node(a.predecessors(y)[0]),C=a.node(a.predecessors(x)[0]);Object.hasOwn(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+w.order+C.order)/(g.weight+2),g.weight+=2}return g}function s(a,u){a.forEach(c=>{c.vs=c.vs.flatMap(d=>u[d]?u[d].vs:d)})}function l(a,u){a.barycenter!==void 0?(a.barycenter=(a.barycenter*a.weight+u.barycenter*u.weight)/(a.weight+u.weight),a.weight+=u.weight):(a.barycenter=u.barycenter,a.weight=u.weight)}}),M0=$e((e,t)=>{var n=on().Graph,r=qe();t.exports=i;function i(s,l,a,u){u||(u=s.nodes());let c=o(s),d=new n({compound:!0}).setGraph({root:c}).setDefaultNodeLabel(h=>s.node(h));return u.forEach(h=>{let p=s.node(h),y=s.parent(h);(p.rank===l||p.minRank<=l&&l<=p.maxRank)&&(d.setNode(h),d.setParent(h,y||c),s[a](h).forEach(x=>{let E=x.v===h?x.w:x.v,v=d.edge(E,h),m=v!==void 0?v.weight:0;d.setEdge(E,h,{weight:s.edge(x).weight+m})}),Object.hasOwn(p,"minRank")&&d.setNode(h,{borderLeft:p.borderLeft[l],borderRight:p.borderRight[l]}))}),d}function o(s){for(var l;s.hasNode(l=r.uniqueId("_root")););return l}}),P0=$e((e,t)=>{t.exports=n;function n(r,i,o){let s={},l;o.forEach(a=>{let u=r.parent(a),c,d;for(;u;){if(c=r.parent(u),c?(d=s[c],s[c]=u):(d=l,l=u),d&&d!==u){i.setEdge(d,u);return}u=c}})}}),D0=$e((e,t)=>{var n=$0(),r=I0(),i=O0(),o=M0(),s=P0(),l=on().Graph,a=qe();t.exports=u;function u(p,y={}){if(typeof y.customOrder=="function"){y.customOrder(p,u);return}let x=a.maxRank(p),E=c(p,a.range(1,x+1),"inEdges"),v=c(p,a.range(x-1,-1,-1),"outEdges"),m=n(p);if(h(p,m),y.disableOptimalOrderHeuristic)return;let g=Number.POSITIVE_INFINITY,w,C=y.constraints||[];for(let S=0,$=0;$<4;++S,++$){d(S%2?E:v,S%4>=2,C),m=a.buildLayerMatrix(p);let O=r(p,m);O<g?($=0,w=Object.assign({},m),g=O):O===g&&(w=structuredClone(m))}h(p,w)}function c(p,y,x){let E=new Map,v=(m,g)=>{E.has(m)||E.set(m,[]),E.get(m).push(g)};for(let m of p.nodes()){let g=p.node(m);if(typeof g.rank=="number"&&v(g.rank,m),typeof g.minRank=="number"&&typeof g.maxRank=="number")for(let w=g.minRank;w<=g.maxRank;w++)w!==g.rank&&v(w,m)}return y.map(function(m){return o(p,m,x,E.get(m)||[])})}function d(p,y,x){let E=new l;p.forEach(function(v){x.forEach(w=>E.setEdge(w.left,w.right));let m=v.graph().root,g=i(v,m,E,y);g.vs.forEach((w,C)=>v.node(w).order=C),s(v,E,g.vs)})}function h(p,y){Object.values(y).forEach(x=>x.forEach((E,v)=>p.node(E).order=v))}}),z0=$e((e,t)=>{var n=on().Graph,r=qe();t.exports={positionX:x,findType1Conflicts:i,findType2Conflicts:o,addConflict:l,hasConflict:a,verticalAlignment:u,horizontalCompaction:c,alignCoordinates:p,findSmallestWidthAlignment:h,balance:y};function i(m,g){let w={};function C(S,$){let O=0,N=0,k=S.length,L=$[$.length-1];return $.forEach((_,R)=>{let M=s(m,_),W=M?m.node(M).order:k;(M||_===L)&&($.slice(N,R+1).forEach(K=>{m.predecessors(K).forEach(G=>{let D=m.node(G),U=D.order;(U<O||W<U)&&!(D.dummy&&m.node(K).dummy)&&l(w,G,K)})}),N=R+1,O=W)}),$}return g.length&&g.reduce(C),w}function o(m,g){let w={};function C($,O,N,k,L){let _;r.range(O,N).forEach(R=>{_=$[R],m.node(_).dummy&&m.predecessors(_).forEach(M=>{let W=m.node(M);W.dummy&&(W.order<k||W.order>L)&&l(w,M,_)})})}function S($,O){let N=-1,k,L=0;return O.forEach((_,R)=>{if(m.node(_).dummy==="border"){let M=m.predecessors(_);M.length&&(k=m.node(M[0]).order,C(O,L,R,N,k),L=R,N=k)}C(O,L,O.length,k,$.length)}),O}return g.length&&g.reduce(S),w}function s(m,g){if(m.node(g).dummy)return m.predecessors(g).find(w=>m.node(w).dummy)}function l(m,g,w){if(g>w){let S=g;g=w,w=S}let C=m[g];C||(m[g]=C={}),C[w]=!0}function a(m,g,w){if(g>w){let C=g;g=w,w=C}return!!m[g]&&Object.hasOwn(m[g],w)}function u(m,g,w,C){let S={},$={},O={};return g.forEach(N=>{N.forEach((k,L)=>{S[k]=k,$[k]=k,O[k]=L})}),g.forEach(N=>{let k=-1;N.forEach(L=>{let _=C(L);if(_.length){_=_.sort((M,W)=>O[M]-O[W]);let R=(_.length-1)/2;for(let M=Math.floor(R),W=Math.ceil(R);M<=W;++M){let K=_[M];$[L]===L&&k<O[K]&&!a(w,L,K)&&($[K]=L,$[L]=S[L]=S[K],k=O[K])}}})}),{root:S,align:$}}function c(m,g,w,C,S){let $={},O=d(m,g,w,S),N=S?"borderLeft":"borderRight";function k(R,M){let W=O.nodes().slice(),K={},G=W.pop();for(;G;){if(K[G])R(G);else{K[G]=!0,W.push(G);for(let D of M(G))W.push(D)}G=W.pop()}}function L(R){$[R]=O.inEdges(R).reduce((M,W)=>Math.max(M,$[W.v]+O.edge(W)),0)}function _(R){let M=O.outEdges(R).reduce((K,G)=>Math.min(K,$[G.w]-O.edge(G)),Number.POSITIVE_INFINITY),W=m.node(R);M!==Number.POSITIVE_INFINITY&&W.borderType!==N&&($[R]=Math.max($[R],M))}return k(L,O.predecessors.bind(O)),k(_,O.successors.bind(O)),Object.keys(C).forEach(R=>$[R]=$[w[R]]),$}function d(m,g,w,C){let S=new n,$=m.graph(),O=E($.nodesep,$.edgesep,C);return g.forEach(N=>{let k;N.forEach(L=>{let _=w[L];if(S.setNode(_),k){var R=w[k],M=S.edge(R,_);S.setEdge(R,_,Math.max(O(m,L,k),M||0))}k=L})}),S}function h(m,g){return Object.values(g).reduce((w,C)=>{let S=Number.NEGATIVE_INFINITY,$=Number.POSITIVE_INFINITY;Object.entries(C).forEach(([N,k])=>{let L=v(m,N)/2;S=Math.max(k+L,S),$=Math.min(k-L,$)});let O=S-$;return O<w[0]&&(w=[O,C]),w},[Number.POSITIVE_INFINITY,null])[1]}function p(m,g){let w=Object.values(g),C=r.applyWithChunking(Math.min,w),S=r.applyWithChunking(Math.max,w);["u","d"].forEach($=>{["l","r"].forEach(O=>{let N=$+O,k=m[N];if(k===g)return;let L=Object.values(k),_=C-r.applyWithChunking(Math.min,L);O!=="l"&&(_=S-r.applyWithChunking(Math.max,L)),_&&(m[N]=r.mapValues(k,R=>R+_))})})}function y(m,g){return r.mapValues(m.ul,(w,C)=>{if(g)return m[g.toLowerCase()][C];{let S=Object.values(m).map($=>$[C]).sort(($,O)=>$-O);return(S[1]+S[2])/2}})}function x(m){let g=r.buildLayerMatrix(m),w=Object.assign(i(m,g),o(m,g)),C={},S;["u","d"].forEach(O=>{S=O==="u"?g:Object.values(g).reverse(),["l","r"].forEach(N=>{N==="r"&&(S=S.map(R=>Object.values(R).reverse()));let k=(O==="u"?m.predecessors:m.successors).bind(m),L=u(m,S,w,k),_=c(m,S,L.root,L.align,N==="r");N==="r"&&(_=r.mapValues(_,R=>-R)),C[O+N]=_})});let $=h(m,C);return p(C,$),y(C,m.graph().align)}function E(m,g,w){return(C,S,$)=>{let O=C.node(S),N=C.node($),k=0,L;if(k+=O.width/2,Object.hasOwn(O,"labelpos"))switch(O.labelpos.toLowerCase()){case"l":L=-O.width/2;break;case"r":L=O.width/2;break}if(L&&(k+=w?L:-L),L=0,k+=(O.dummy?g:m)/2,k+=(N.dummy?g:m)/2,k+=N.width/2,Object.hasOwn(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":L=N.width/2;break;case"r":L=-N.width/2;break}return L&&(k+=w?L:-L),L=0,k}}function v(m,g){return m.node(g).width}}),F0=$e((e,t)=>{var n=qe(),r=z0().positionX;t.exports=i;function i(s){s=n.asNonCompoundGraph(s),o(s),Object.entries(r(s)).forEach(([l,a])=>s.node(l).x=a)}function o(s){let l=n.buildLayerMatrix(s),a=s.graph().ranksep,u=s.graph().rankalign,c=0;l.forEach(d=>{let h=d.reduce((p,y)=>{let x=s.node(y).height;return p>x?p:x},0);d.forEach(p=>{let y=s.node(p);u==="top"?y.y=c+y.height/2:u==="bottom"?y.y=c+h-y.height/2:y.y=c+h/2}),c+=h+a})}}),B0=$e((e,t)=>{var n=b0(),r=E0(),i=C0(),o=qe().normalizeRanks,s=N0(),l=qe().removeEmptyRanks,a=j0(),u=_0(),c=T0(),d=D0(),h=F0(),p=qe(),y=on().Graph;t.exports=x;function x(T,z={}){let q=z.debugTiming?p.time:p.notime;return q("layout",()=>{let Q=q(" buildLayoutGraph",()=>k(T));return q(" runLayout",()=>E(Q,q,z)),q(" updateInputGraph",()=>v(T,Q)),Q})}function E(T,z,q){z(" makeSpaceForEdgeLabels",()=>L(T)),z(" removeSelfEdges",()=>b(T)),z(" acyclic",()=>n.run(T)),z(" nestingGraph.run",()=>a.run(T)),z(" rank",()=>i(p.asNonCompoundGraph(T))),z(" injectEdgeLabelProxies",()=>_(T)),z(" removeEmptyRanks",()=>l(T)),z(" nestingGraph.cleanup",()=>a.cleanup(T)),z(" normalizeRanks",()=>o(T)),z(" assignRankMinMax",()=>R(T)),z(" removeEdgeLabelProxies",()=>M(T)),z(" normalize.run",()=>r.run(T)),z(" parentDummyChains",()=>s(T)),z(" addBorderSegments",()=>u(T)),z(" order",()=>d(T,q)),z(" insertSelfEdges",()=>Y(T)),z(" adjustCoordinateSystem",()=>c.adjust(T)),z(" position",()=>h(T)),z(" positionSelfEdges",()=>X(T)),z(" removeBorderNodes",()=>U(T)),z(" normalize.undo",()=>r.undo(T)),z(" fixupEdgeLabelCoords",()=>G(T)),z(" undoCoordinateSystem",()=>c.undo(T)),z(" translateGraph",()=>W(T)),z(" assignNodeIntersects",()=>K(T)),z(" reversePoints",()=>D(T)),z(" acyclic.undo",()=>n.undo(T))}function v(T,z){T.nodes().forEach(q=>{let Q=T.node(q),re=z.node(q);Q&&(Q.x=re.x,Q.y=re.y,Q.order=re.order,Q.rank=re.rank,z.children(q).length&&(Q.width=re.width,Q.height=re.height))}),T.edges().forEach(q=>{let Q=T.edge(q),re=z.edge(q);Q.points=re.points,Object.hasOwn(re,"x")&&(Q.x=re.x,Q.y=re.y)}),T.graph().width=z.graph().width,T.graph().height=z.graph().height}var m=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb",rankalign:"center"},w=["acyclicer","ranker","rankdir","align","rankalign"],C=["width","height","rank"],S={width:0,height:0},$=["minlen","weight","width","height","labeloffset"],O={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},N=["labelpos"];function k(T){let z=new y({multigraph:!0,compound:!0}),q=I(T.graph());return z.setGraph(Object.assign({},g,j(q,m),p.pick(q,w))),T.nodes().forEach(Q=>{let re=I(T.node(Q)),P=j(re,C);Object.keys(S).forEach(te=>{P[te]===void 0&&(P[te]=S[te])}),z.setNode(Q,P),z.setParent(Q,T.parent(Q))}),T.edges().forEach(Q=>{let re=I(T.edge(Q));z.setEdge(Q,Object.assign({},O,j(re,$),p.pick(re,N)))}),z}function L(T){let z=T.graph();z.ranksep/=2,T.edges().forEach(q=>{let Q=T.edge(q);Q.minlen*=2,Q.labelpos.toLowerCase()!=="c"&&(z.rankdir==="TB"||z.rankdir==="BT"?Q.width+=Q.labeloffset:Q.height+=Q.labeloffset)})}function _(T){T.edges().forEach(z=>{let q=T.edge(z);if(q.width&&q.height){let Q=T.node(z.v),re={rank:(T.node(z.w).rank-Q.rank)/2+Q.rank,e:z};p.addDummyNode(T,"edge-proxy",re,"_ep")}})}function R(T){let z=0;T.nodes().forEach(q=>{let Q=T.node(q);Q.borderTop&&(Q.minRank=T.node(Q.borderTop).rank,Q.maxRank=T.node(Q.borderBottom).rank,z=Math.max(z,Q.maxRank))}),T.graph().maxRank=z}function M(T){T.nodes().forEach(z=>{let q=T.node(z);q.dummy==="edge-proxy"&&(T.edge(q.e).labelRank=q.rank,T.removeNode(z))})}function W(T){let z=Number.POSITIVE_INFINITY,q=0,Q=Number.POSITIVE_INFINITY,re=0,P=T.graph(),te=P.marginx||0,ce=P.marginy||0;function Ae(Se){let be=Se.x,Fe=Se.y,B=Se.width,ne=Se.height;z=Math.min(z,be-B/2),q=Math.max(q,be+B/2),Q=Math.min(Q,Fe-ne/2),re=Math.max(re,Fe+ne/2)}T.nodes().forEach(Se=>Ae(T.node(Se))),T.edges().forEach(Se=>{let be=T.edge(Se);Object.hasOwn(be,"x")&&Ae(be)}),z-=te,Q-=ce,T.nodes().forEach(Se=>{let be=T.node(Se);be.x-=z,be.y-=Q}),T.edges().forEach(Se=>{let be=T.edge(Se);be.points.forEach(Fe=>{Fe.x-=z,Fe.y-=Q}),Object.hasOwn(be,"x")&&(be.x-=z),Object.hasOwn(be,"y")&&(be.y-=Q)}),P.width=q-z+te,P.height=re-Q+ce}function K(T){T.edges().forEach(z=>{let q=T.edge(z),Q=T.node(z.v),re=T.node(z.w),P,te;q.points?(P=q.points[0],te=q.points[q.points.length-1]):(q.points=[],P=re,te=Q),q.points.unshift(p.intersectRect(Q,P)),q.points.push(p.intersectRect(re,te))})}function G(T){T.edges().forEach(z=>{let q=T.edge(z);if(Object.hasOwn(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function D(T){T.edges().forEach(z=>{let q=T.edge(z);q.reversed&&q.points.reverse()})}function U(T){T.nodes().forEach(z=>{if(T.children(z).length){let q=T.node(z),Q=T.node(q.borderTop),re=T.node(q.borderBottom),P=T.node(q.borderLeft[q.borderLeft.length-1]),te=T.node(q.borderRight[q.borderRight.length-1]);q.width=Math.abs(te.x-P.x),q.height=Math.abs(re.y-Q.y),q.x=P.x+q.width/2,q.y=Q.y+q.height/2}}),T.nodes().forEach(z=>{T.node(z).dummy==="border"&&T.removeNode(z)})}function b(T){T.edges().forEach(z=>{if(z.v===z.w){var q=T.node(z.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:z,label:T.edge(z)}),T.removeEdge(z)}})}function Y(T){var z=p.buildLayerMatrix(T);z.forEach(q=>{var Q=0;q.forEach((re,P)=>{var te=T.node(re);te.order=P+Q,(te.selfEdges||[]).forEach(ce=>{p.addDummyNode(T,"selfedge",{width:ce.label.width,height:ce.label.height,rank:te.rank,order:P+ ++Q,e:ce.e,label:ce.label},"_se")}),delete te.selfEdges})})}function X(T){T.nodes().forEach(z=>{var q=T.node(z);if(q.dummy==="selfedge"){var Q=T.node(q.e.v),re=Q.x+Q.width/2,P=Q.y,te=q.x-re,ce=Q.height/2;T.setEdge(q.e,q.label),T.removeNode(z),q.label.points=[{x:re+2*te/3,y:P-ce},{x:re+5*te/6,y:P-ce},{x:re+te,y:P},{x:re+5*te/6,y:P+ce},{x:re+2*te/3,y:P+ce}],q.label.x=q.x,q.label.y=q.y}})}function j(T,z){return p.mapValues(p.pick(T,z),Number)}function I(T){var z={};return T&&Object.entries(T).forEach(([q,Q])=>{typeof q=="string"&&(q=q.toLowerCase()),z[q]=Q}),z}}),U0=$e((e,t)=>{var n=qe(),r=on().Graph;t.exports={debugOrdering:i};function i(o){let s=n.buildLayerMatrix(o),l=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(a=>{l.setNode(a,{label:a}),l.setParent(a,"layer"+o.node(a).rank)}),o.edges().forEach(a=>l.setEdge(a.v,a.w,{},a.name)),s.forEach((a,u)=>{let c="layer"+u;l.setNode(c,{rank:"same"}),a.reduce((d,h)=>(l.setEdge(d,h,{style:"invis"}),h))}),l}}),H0=$e((e,t)=>{t.exports="2.0.4"}),W0=$e((e,t)=>{t.exports={graphlib:on(),layout:B0(),debug:U0(),util:{time:qe().time,notime:qe().notime},version:H0()}});const pp=W0();/*! For license information please see dagre.esm.js.LEGAL.txt */const oi=28,yr=20,vy=20,wa=10,V0=150;function G0(e,t){if(t==="all")return e.map(o=>({table:o,neighbor:!1}));const n=e.filter(o=>o.status!=="unchanged"),r=new Set(n.map(o=>o.name)),i=new Set;for(const o of n)for(const s of o.foreignKeys)r.has(s.table)||i.add(s.table);return e.filter(o=>r.has(o.name)||i.has(o.name)).map(o=>({table:o,neighbor:i.has(o.name)}))}function K0(e,t,n){const r=new Set(e.foreignKeys.flatMap(l=>l.columns)),i=l=>n||l.status!=="unchanged"||l.primary||r.has(l.name)||l.values||t.has(l.name),o=e.columns.filter(i).map(l=>({kind:"column",column:l,fk:r.has(l.name)})),s=e.columns.length-o.length;return s>0&&o.push({kind:"more",hidden:s}),o}function q0(e){const t=[];return e.otherChanges.constraints&&t.push(`制約 ${e.otherChanges.constraints}`),e.otherChanges.indexes&&t.push(`インデックス ${e.otherChanges.indexes}`),e.otherChanges.comment&&t.push("コメント"),t.length?`${t.join("・")} の変更`:void 0}function wy(e){return{name:e.name,type:e.beforeType?`${e.beforeType} → ${e.type}`:e.type}}function Y0(e,t,n,r){const i=G0(e,t),o=new Set(i.map(x=>x.table.name)),s=new Map;for(const{table:x}of i)for(const E of x.foreignKeys){if(!o.has(E.table))continue;const v=s.get(E.table)??new Set;E.refColumns.forEach(m=>v.add(m)),s.set(E.table,v)}const l=new pp.graphlib.Graph({compound:!0,multigraph:!0});l.setGraph({rankdir:"LR",nodesep:28,ranksep:90,marginx:20,marginy:20}),l.setDefaultEdgeLabel(()=>({}));const a=i.map(({table:x,neighbor:E})=>{const v=K0(x,s.get(x.name)??new Set,n.has(x.name)),m=q0(x);let g=Math.max(V0,r(x.name,!0)+wa*2+24);for(const C of v){if(C.kind==="more")continue;const S=wy(C.column);g=Math.max(g,18+r(S.name)+16+r(S.type)+34+wa*2)}m&&(g=Math.max(g,r(m)+wa*2));const w=oi+v.length*yr+(m?vy:0)+4;return{table:x,neighbor:E,rows:v,footer:m,x:0,y:0,width:Math.ceil(g),height:w}}),u=[...new Set(a.map(x=>x.table.schema))];for(const x of u)l.setNode(`schema:${x}`,{label:x,paddingTop:26});for(const x of a)l.setNode(x.table.name,{width:x.width,height:x.height}),l.setParent(x.table.name,`schema:${x.table.schema}`);const c=[];for(const x of a)for(const E of x.table.foreignKeys){if(!o.has(E.table))continue;const v=a.find(g=>g.table.name===E.table),m=(g,w)=>!!w&&g.rows.some(C=>C.kind==="column"&&C.column.name===w);c.push({fk:E,from:x.table.name,to:E.table,fromColumn:m(x,E.columns[0])?E.columns[0]:void 0,toColumn:m(v,E.refColumns[0])?E.refColumns[0]:void 0,points:[]}),E.table!==x.table.name&&l.setEdge(x.table.name,E.table,{},E.name)}pp.layout(l);for(const x of a){const E=l.node(x.table.name);x.x=E.x-x.width/2,x.y=E.y-x.height/2}const d=u.map(x=>{const E=l.node(`schema:${x}`);return{schema:x,x:E.x-E.width/2,y:E.y-E.height/2,width:E.width,height:E.height}}),h=new Map(a.map(x=>[x.table.name,x]));for(const x of c)x.points=X0(h.get(x.from),x.fromColumn,h.get(x.to),x.toColumn);const p=Math.max(0,...a.map(x=>x.x+x.width),...d.map(x=>x.x+x.width)),y=Math.max(0,...a.map(x=>x.y+x.height),...d.map(x=>x.y+x.height));return{tables:a,edges:c,groups:d,width:p+20,height:y+20}}function hp(e,t){const n=t?e.rows.findIndex(r=>r.kind==="column"&&r.column.name===t):-1;return n<0?e.y+oi/2:e.y+oi+n*yr+yr/2}function X0(e,t,n,r){const i=hp(e,t),o=hp(n,r);if(e===n){const d=e.x+e.width;return[{x:d,y:i},{x:d+28,y:i},{x:d+28,y:o},{x:d,y:o}]}const s=e.x+e.width/2,a=n.x+n.width/2>=s,u=a?e.x+e.width:e.x,c=a?n.x:n.x+n.width;return[{x:u,y:i},{x:c,y:o}]}function Q0(e){if(e.length!==2)return`M ${e.map(i=>`${i.x} ${i.y}`).join(" L ")}`;const[t,n]=e,r=Math.max(30,Math.abs(n.x-t.x)/2)*(n.x>=t.x?1:-1);return`M ${t.x} ${t.y} C ${t.x+r} ${t.y}, ${n.x-r} ${n.y}, ${n.x} ${n.y}`}const Z0={added:"+",removed:"−",modified:"~",unchanged:""},ky="12px ui-monospace, SFMono-Regular, Menlo, monospace",J0=`600 ${ky}`;function eb(){return H.useMemo(()=>{const e=document.createElement("canvas").getContext("2d");return(t,n)=>e?(e.font=n?J0:ky,e.measureText(t).width):t.length*7.4},[])}const tb=H.forwardRef(function({tables:t,mode:n,values:r,selected:i,reviewed:o,comments:s,onSelect:l},a){const u=eb(),[c,d]=H.useState(new Set),[h,p]=H.useState(null),[y,x]=H.useState({x:0,y:0,k:1}),E=H.useRef(null),v=H.useRef(null),m=H.useMemo(()=>Y0(t,n,c,u),[t,n,c,u]),g=H.useMemo(()=>new Map(m.tables.map(N=>[N.table.name,N])),[m]),w=H.useRef(!1),C=H.useCallback(()=>{const N=E.current;if(!N||m.width===0)return;if(N.clientWidth===0||N.clientHeight===0){w.current=!0;return}w.current=!1;const k=Math.min(1.2,Math.max(.2,Math.min(N.clientWidth/m.width,N.clientHeight/m.height)));x({k,x:(N.clientWidth-m.width*k)/2,y:Math.max(0,(N.clientHeight-m.height*k)/2)})},[m]),S=m.tables.map(N=>N.table.name).join("|");H.useEffect(()=>{C()},[S]),H.useEffect(()=>{const N=E.current;if(!N)return;const k=new ResizeObserver(()=>{w.current&&C()});return k.observe(N),()=>k.disconnect()},[C]);const $=H.useCallback((N,k,L)=>{x(_=>{const R=Math.min(3,Math.max(.15,_.k*N));return{k:R,x:k-(k-_.x)*R/_.k,y:L-(L-_.y)*R/_.k}})},[]);H.useImperativeHandle(a,()=>({fit:C,zoom:N=>{const k=E.current;k&&$(N,k.clientWidth/2,k.clientHeight/2)},focus:N=>{const k=g.get(N),L=E.current;!k||!L||x(_=>({..._,x:L.clientWidth/2-(k.x+k.width/2)*_.k,y:L.clientHeight/3-(k.y+Math.min(k.height,200)/2)*_.k}))}}),[C,$,g]),H.useEffect(()=>{const N=E.current;if(!N)return;const k=L=>{L.preventDefault();const _=N.getBoundingClientRect();L.ctrlKey||L.metaKey?$(Math.exp(-L.deltaY*.01),L.clientX-_.left,L.clientY-_.top):x(R=>({...R,x:R.x-L.deltaX,y:R.y-L.deltaY}))};return N.addEventListener("wheel",k,{passive:!1}),()=>N.removeEventListener("wheel",k)},[$]);const O=N=>h===N||i===N;return f.jsx("div",{ref:E,className:"er",onPointerDown:N=>{N.button===0&&(v.current={x:N.clientX,y:N.clientY,vx:y.x,vy:y.y,moved:!1,target:N.target},N.currentTarget.setPointerCapture(N.pointerId))},onPointerMove:N=>{const k=v.current;k&&(Math.abs(N.clientX-k.x)+Math.abs(N.clientY-k.y)>3&&(k.moved=!0),k.moved&&x(L=>({...L,x:k.vx+N.clientX-k.x,y:k.vy+N.clientY-k.y})))},onPointerUp:()=>{const N=v.current;if(v.current=null,N&&!N.moved){const k=N.target.closest("[data-table]"),L=N.target.closest("[data-more]");if(L){const _=L.getAttribute("data-more");d(R=>{const M=new Set(R);return M.has(_)?M.delete(_):M.add(_),M})}else l(k?k.getAttribute("data-table"):null)}},children:m.tables.length===0?f.jsx("div",{className:"er-empty",children:"表示するテーブルはありません"}):f.jsxs("svg",{width:"100%",height:"100%",children:[f.jsx("defs",{children:["added","removed","modified","unchanged"].map(N=>f.jsx("marker",{id:`arrow-${N}`,viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:f.jsx("path",{d:"M0,0 L10,5 L0,10 z",className:`arrow ${N}`})},N))}),f.jsxs("g",{transform:`translate(${y.x} ${y.y}) scale(${y.k})`,children:[m.groups.map(N=>f.jsxs("g",{className:"er-group",children:[f.jsx("rect",{x:N.x,y:N.y,width:N.width,height:N.height,rx:8}),f.jsx("text",{x:N.x+10,y:N.y+17,children:N.schema})]},N.schema)),m.edges.map(N=>{const k=O(N.from)||O(N.to);return f.jsx("path",{d:Q0(N.points),className:`er-edge ${N.fk.status} ${k?"lit":""} ${h||i?k?"":"dim":""}`,markerEnd:`url(#arrow-${N.fk.status})`,children:f.jsxs("title",{children:[N.fk.name,": ",N.from,".",N.fk.columns.join(", ")," → ",N.to,".",N.fk.refColumns.join(", ")]})},`${N.from}:${N.fk.name}`)}),m.tables.map(N=>f.jsx(nb,{t:N,values:r,selected:i===N.table.name,reviewed:o.has(N.table.name),comments:s.tables.get(N.table.name)??0,commented:s.columns,expanded:c.has(N.table.name),onHover:p},N.table.name))]})]})})});function nb({t:e,values:t,selected:n,reviewed:r,comments:i,commented:o,expanded:s,onHover:l}){const a=e.table.status;return f.jsxs("g",{className:`er-table ${a} ${e.neighbor?"neighbor":""} ${n?"selected":""} ${r?"reviewed":""}`,"data-table":e.table.name,transform:`translate(${e.x} ${e.y})`,onPointerEnter:()=>l(e.table.name),onPointerLeave:()=>l(null),children:[f.jsx("rect",{className:"er-box",width:e.width,height:e.height,rx:6}),f.jsx("rect",{className:"er-head",width:e.width,height:oi,rx:6}),f.jsx("rect",{className:"er-head-fill",y:oi-6,width:e.width,height:6}),f.jsxs("text",{className:"er-title",x:10,y:18,children:[f.jsxs("tspan",{className:"er-schema",children:[e.table.schema,"."]}),f.jsx("tspan",{children:e.table.table})]}),r&&f.jsx("text",{className:"er-check",x:e.width-(i>0?24:10),y:18,textAnchor:"end",children:"✓"}),e.rows.map((u,c)=>{const d=oi+c*yr;if(u.kind==="more")return f.jsxs("g",{className:"er-more","data-more":e.table.name,children:[f.jsx("rect",{y:d,width:e.width,height:yr}),f.jsx("text",{x:10,y:d+14,children:s?"▴ たたむ":`▸ 他 ${u.hidden} カラム`})]},"more");const h=u.column,p=wy(h),y=t.get(`${e.table.name}.${h.name}`);return f.jsxs("g",{className:`er-row ${h.status}`,children:[f.jsx("rect",{y:d,width:e.width,height:yr}),f.jsx("text",{x:8,y:d+14,className:`er-mark ${h.status}`,children:Z0[h.status]}),f.jsxs("text",{x:20,y:d+14,className:"er-col",children:[h.primary&&f.jsx("tspan",{className:"er-key",children:"◆ "}),p.name]}),f.jsxs("text",{x:e.width-10,y:d+14,textAnchor:"end",className:"er-type",children:[u.fk&&f.jsx("tspan",{className:"er-fk",children:"FK "}),h.values&&f.jsx("tspan",{className:"er-values",children:"値± "}),h.beforeType?f.jsxs(f.Fragment,{children:[f.jsx("tspan",{className:"er-before",children:h.beforeType}),f.jsxs("tspan",{children:[" → ",h.type]})]}):h.type,h.notNull?"":f.jsx("tspan",{className:"er-null",children:"?"})]}),o.has(`${e.table.name}.${h.name}`)&&f.jsx("circle",{className:"er-cdot",cx:e.width-4,cy:d+yr/2,r:2.5}),y&&f.jsx("title",{children:y})]},h.name)}),i>0&&f.jsxs("g",{className:"er-cbadge",transform:`translate(${e.width-4} 0)`,children:[f.jsxs("title",{children:["コメント ",i," 件"]}),f.jsx("rect",{x:-17,y:-9,width:34,height:18,rx:9}),f.jsx(wi,{size:10,x:-11,y:-5}),f.jsx("text",{x:4,y:4,textAnchor:"middle",children:i})]}),e.footer&&f.jsx("text",{className:"er-footer",x:10,y:e.height-vy/2-1,children:e.footer})]})}const Qr={side:260,panel:440},mp=180,gp=320,yp=320,by="dbshape.layout";function rb(){const e=$n(by,{});return{side:typeof e.side=="number"&&e.side>0?e.side:Qr.side,panel:typeof e.panel=="number"&&e.panel>0?e.panel:Qr.panel}}const ts=e=>mn(by,e);function ns(e,t,n){const r=jr*(n?2:1);let i=e.panel;n&&(i=Math.max(yp,Math.min(i,t-r-mp-gp)));const o=t-r-(n?i:0);return{side:Math.max(mp,Math.min(e.side,o-gp)),panel:Math.max(yp,i)}}function ib(e,t){return[`${e.side}px`,`${jr}px`,"minmax(0, 1fr)",...t?[`${jr}px`,`${e.panel}px`]:[]].join(" ")}const Ey="dbshape.reviewed:",ob=e=>$n(Ey+e,{}),sb=(e,t)=>mn(Ey+e,t),lb=e=>`${e.repoRoot}|${e.base.label}|${e.target.label}|${e.database.id}`,ab=[{status:"added",title:"新規テーブル"},{status:"modified",title:"変更したテーブル"},{status:"removed",title:"削除したテーブル"}];function ub({data:e,active:t,onComments:n,switcher:r}){const i=lb(e),[o,s]=H.useState(""),[l,a]=H.useState("changes"),[u,c]=H.useState(null),[d,h]=H.useState(()=>ob(i)),[p,y]=H.useState(()=>s0(i)),[x,E]=H.useState(null),[v,m]=H.useState(null),g=H.useRef(null),w=H.useRef(null),C=H.useRef(null),S=Zg(w),[$,O]=H.useState(rb);H.useEffect(()=>{if(!t)return;const P=te=>{te.key==="Escape"&&!(te.target instanceof HTMLElement&&te.target.closest("textarea, input"))&&c(null)};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[t]),H.useEffect(()=>{const P=p.filter(te=>ii(e,te)!=="resolved").length;n({open:P,prompt:()=>uy(e,p,{header:!1}).text})},[e,p,n]);const N=e.diff.tables,k=H.useMemo(()=>new Set(N.map(P=>P.name)),[N]),L=P=>d[P.name]===Ji(P),_=H.useMemo(()=>new Set(N.filter(P=>d[P.name]===Ji(P)).map(P=>P.name)),[N,d]),R=H.useMemo(()=>{const P=new Map;for(const te of e.diff.values){const ce=Il(te.before,te.after).map(Se=>Se.status==="added"?`+${Se.value}`:Se.status==="removed"?`−${Se.value}`:Se.value).join(" "),Ae=te.source==="check"?[`${te.table}.${te.column}`]:te.usedBy??[];for(const Se of Ae)P.set(Se,`値: ${ce}`)}return P},[e]),M=H.useMemo(()=>{const P=new Map,te=new Set;for(const ce of p)ii(e,ce)==="resolved"||!ce.target.table||(P.set(ce.target.table,(P.get(ce.target.table)??0)+1),(ce.target.kind==="column"||ce.target.kind==="value")&&te.add(`${ce.target.table}.${ce.target.name}`));return{tables:P,columns:te}},[e,p]),W=e.diff,K=(P,te)=>{const ce={...d};te?ce[P.name]=Ji(P):delete ce[P.name],h(ce),sb(i,ce)},G=(P,te=!0)=>{c({kind:"table",name:P}),te&&window.setTimeout(()=>{var ce;return(ce=g.current)==null?void 0:ce.focus(P)},0)},D=P=>{y(P),l0(i,P)},U={data:e,comments:p,composing:x,editing:v,compose:P=>{E(P?mi(P):null),m(null)},edit:P=>{m(P),E(null)},add:(P,te)=>{D([...p,i0(e,P,te)]),E(null)},update:(P,te)=>{D(p.map(ce=>ce.id===P?{...ce,body:te}:ce)),m(null)},remove:P=>D(p.filter(te=>te.id!==P))},b=P=>{P.table?G(P.table):c({kind:"type",name:P.name}),window.setTimeout(()=>{var te;return(te=document.getElementById(`c-${mi(P)}`))==null?void 0:te.scrollIntoView({block:"center",behavior:"smooth"})},50)},Y=N.filter(P=>Jk(P,o)),X=[...W.enums.map(P=>({kind:"ENUM 型",change:P})),...W.domains.map(P=>({kind:"DOMAIN",change:P}))],j=N.filter(L).length,I=u,T=(I==null?void 0:I.kind)==="table"?N.find(P=>P.name===I.name):void 0,z=(I==null?void 0:I.kind)==="table"?e.er.find(P=>P.name===I.name):void 0,q=(I==null?void 0:I.kind)==="table"?W.values.filter(P=>{var te;return P.table===I.name||((te=P.usedBy)==null?void 0:te.some(ce=>ce.startsWith(`${I.name}.`)))}):[],Q=(I==null?void 0:I.kind)==="type"?X.find(P=>P.change.name===I.name):void 0,re=N.length===0&&W.values.length===0&&X.length===0;return f.jsx(dy.Provider,{value:U,children:f.jsxs("div",{className:"app",children:[f.jsxs(md,{children:[r,f.jsxs(gd,{children:[f.jsx(hi,{children:"テーブル"}),f.jsx($l,{stats:{added:N.filter(P=>P.status==="added").length,modified:N.filter(P=>P.status==="modified").length,removed:N.filter(P=>P.status==="removed").length},unit:"テーブル",showZero:!0}),f.jsx(yd,{}),f.jsx(hi,{children:"値の変化"}),f.jsx("span",{className:`vcount${W.values.length?"":" zero"}`,title:"CHECK や ENUM などの値の変化",children:W.values.length})]}),f.jsx(xd,{}),f.jsx(vd,{done:j,total:N.length,title:"確認済みにしたテーブル(内容が変わると外れます)"})]}),f.jsxs("div",{className:`body ${I?"with-panel":""}`,ref:w,style:{gridTemplateColumns:ib(S?ns($,S,!!I):$,!!I)},children:[f.jsxs("nav",{className:"side",ref:C,children:[f.jsx("input",{className:"filter",placeholder:"テーブル・カラムで絞り込み",value:o,onChange:P=>s(P.target.value)}),ab.map(P=>{const te=Y.filter(ce=>ce.status===P.status);return f.jsxs("div",{className:"group",children:[f.jsxs("div",{className:"group-title",children:[P.title," ",f.jsx("span",{className:"muted",children:te.length})]}),te.map(ce=>{const Ae=sy(ce),Se=M.tables.get(ce.name)??0,be=L(ce);return f.jsxs("div",{className:`item-row tinted ${ce.status}${be?" reviewed":""}${(I==null?void 0:I.name)===ce.name?" current":""}`,children:[f.jsxs("button",{className:"item",onClick:()=>G(ce.name),title:ce.name,children:[f.jsxs("span",{className:"iname",children:[f.jsxs("span",{className:"schema",children:[ce.schema,"."]}),ce.table]}),f.jsx(ki,{stats:Ae,title:oy(Ae)}),Se>0&&f.jsx(_l,{n:Se,title:"このテーブルへの未対応のコメント"})]}),f.jsx("button",{className:`ireview${be?" on":""}`,onClick:()=>K(ce,!be),title:be?"確認済み(クリックで外す)":"確認済みにする(テーブルがまた変わると外れます)","aria-label":be?"確認済みを外す":"確認済みにする","aria-pressed":be,children:f.jsx(Bu,{size:12})})]},ce.name)})]},P.status)}),f.jsxs("div",{className:"group",children:[f.jsxs("div",{className:"group-title",children:["値の変化 ",f.jsx("span",{className:"muted",children:W.values.length})]}),W.values.map((P,te)=>{const ce=ly(P);return f.jsx("button",{className:"item tinted values",onClick:()=>ce.table?G(ce.table):P.type&&c({kind:"type",name:P.type}),children:f.jsx("span",{className:"iname",children:ce.label})},te)})]}),p.length>0&&f.jsxs("div",{className:"group",children:[f.jsxs("div",{className:"group-title",children:["コメント ",f.jsx("span",{className:"muted",children:p.length})]}),p.map(P=>{const te=ii(e,P);return f.jsxs("div",{className:`item comment-item ${te}`,role:"button",tabIndex:0,onClick:()=>b(P.target),onKeyDown:ce=>ce.key==="Enter"&&b(P.target),title:`${Wu(P.target)}
|
|
66
|
-
${P.body}`,children:[f.jsx("span",{className:"mark cmark",children:f.jsx(wi,{size:12})}),f.jsxs("span",{className:"iname",children:[f.jsx("span",{className:"ctarget",children:Wu(P.target)}),f.jsx("span",{className:"cline",children:P.body.split(`
|
|
67
|
-
`)[0]})]}),te!=="open"&&f.jsx("span",{className:`cstate ${te}`,children:a0[te]}),f.jsx("button",{className:"cdel","aria-label":"削除",title:"このコメントを削除",onClick:ce=>{ce.stopPropagation(),U.remove(P.id)},children:"×"})]},P.id)})]}),X.length>0&&f.jsxs("div",{className:"group",children:[f.jsxs("div",{className:"group-title",children:["型 ",f.jsx("span",{className:"muted",children:X.length})]}),X.map(P=>f.jsx("button",{className:`item tinted ${P.change.status}${(I==null?void 0:I.name)===P.change.name?" current":""}`,onClick:()=>c({kind:"type",name:P.change.name}),children:f.jsx("span",{className:"iname",children:P.change.name})},P.change.name))]}),f.jsxs("div",{className:"side-foot muted",children:[f.jsxs("div",{children:["変更のないテーブル ",W.unchangedTables]}),f.jsxs("details",{children:[f.jsxs("summary",{children:["スキーマ ",e.target.files.length," ファイル(",wd(e.schemaFrom),")"]}),f.jsx("ul",{children:e.target.files.map(P=>f.jsx("li",{children:P},P))})]}),e.ignored.length>0&&f.jsxs("details",{children:[f.jsxs("summary",{children:["比較していない文 ",e.ignored.reduce((P,te)=>P+te.count,0)]}),f.jsx("ul",{children:e.ignored.map(P=>f.jsxs("li",{children:[P.statement," ",P.count]},P.statement))})]})]})]}),f.jsx(Eo,{title:"ドラッグで一覧と図の幅を変える(ダブルクリックで元に戻す)",start:()=>{var P;return((P=C.current)==null?void 0:P.getBoundingClientRect().width)??$.side},onDrag:(P,te)=>O(ce=>ns({...ce,side:P+te},S,!!I)),onEnd:()=>O(P=>(ts(P),P)),onReset:()=>O(P=>(ts({...P,side:Qr.side}),{...P,side:Qr.side}))}),f.jsxs("main",{className:"canvas",children:[f.jsxs("div",{className:"toolbar",children:[f.jsxs("div",{className:"ds-seg",children:[f.jsx("button",{className:l==="changes"?"on":"",onClick:()=>a("changes"),title:"変更したテーブルと、その外部キーの参照先だけ",children:"変更まわり"}),f.jsx("button",{className:l==="all"?"on":"",onClick:()=>a("all"),title:"すべてのテーブル",children:"全体"})]}),f.jsx("button",{className:"ds-btn",onClick:()=>{var P;return(P=g.current)==null?void 0:P.fit()},title:"図全体を画面に収める",children:"全体を表示"}),f.jsx("button",{className:"ds-btn ds-btn-icon",onClick:()=>{var P;return(P=g.current)==null?void 0:P.zoom(1.25)},"aria-label":"拡大",children:"+"}),f.jsx("button",{className:"ds-btn ds-btn-icon",onClick:()=>{var P;return(P=g.current)==null?void 0:P.zoom(.8)},"aria-label":"縮小",children:"−"}),f.jsx("span",{className:"muted hint",title:"スクロールでも移動できます。トラックパッドのピンチでも拡大縮小できます",children:"ドラッグで移動・⌘ / Ctrl + スクロールで拡大・クリックで詳細"})]}),e.warnings.length>0&&f.jsx("div",{className:"warnings",children:e.warnings.map((P,te)=>f.jsx("div",{className:"warning",children:P},te))}),re&&l==="changes"?f.jsxs("div",{className:"empty",children:["スキーマの変更はありません(",e.target.files.length," ファイルを比較しました)"]}):f.jsx(tb,{ref:g,tables:e.er,mode:l,values:R,selected:(I==null?void 0:I.kind)==="table"?I.name:null,reviewed:_,comments:M,onSelect:P=>P?G(P,!1):c(null)})]}),I&&f.jsx(Eo,{title:"ドラッグで図と詳細パネルの幅を変える(ダブルクリックで元に戻す)",start:()=>ns($,S,!0).panel,onDrag:(P,te)=>O(ce=>ns({...ce,panel:P-te},S,!0)),onEnd:()=>O(P=>(ts(P),P)),onReset:()=>O(P=>(ts({...P,panel:Qr.panel}),{...P,panel:Qr.panel}))}),I&&f.jsx(g0,{selection:I,change:T,erTable:z,values:q,type:Q,reviewed:T?L(T):!1,onReviewed:P=>T&&K(T,P),known:k,onJump:P=>G(P),onClose:()=>c(null)})]})]})})}function cb({data:e,active:t,onComments:n}){const r=e.databases,i=r.length>1,o=`dbshape.database:${e.repoRoot}`,[s,l]=H.useState(()=>{var E;const x=$n(o,null);return x&&r.some(v=>v.database.id===x)?x:(E=[...r].sort((v,m)=>bs(m)-bs(v))[0])==null?void 0:E.database.id}),a=r.find(x=>x.database.id===s)??r[0],u=x=>{l(x),mn(o,x)},[c,d]=H.useState({}),h=H.useRef(new Map),p=x=>{let E=h.current.get(x);return E||h.current.set(x,E=v=>d(m=>({...m,[x]:v}))),E};if(H.useEffect(()=>{const x=r.filter(E=>{var v;return(((v=c[E.database.id])==null?void 0:v.open)??0)>0});n({open:x.reduce((E,v)=>E+c[v.database.id].open,0),prompt:()=>x.map(E=>{const v=c[E.database.id].prompt().trimEnd();return i?`### DB: ${E.database.name}
|
|
68
|
-
|
|
69
|
-
${v}`:v}).join(`
|
|
70
|
-
|
|
71
|
-
`)})},[r,c,i,n]),!a)return f.jsx("div",{className:"fatal muted",children:"スキーマの SQL ファイルがありません"});const y=i?f.jsx("div",{className:"db-switch",role:"tablist","aria-label":"データベース",children:r.map(x=>{const E=bs(x),v=x===a;return f.jsxs("button",{role:"tab","aria-selected":v,className:`db-tab ${v?"on":""} ${E===0?"quiet":""}`,onClick:()=>u(x.database.id),title:`${wd(x.schemaFrom)}
|
|
72
|
-
変更 ${E}`,children:[f.jsx("span",{className:"db-name",children:x.database.name}),f.jsx("span",{className:"db-count",children:E})]},x.database.id)})}):void 0;return f.jsx(f.Fragment,{children:r.map(x=>f.jsx("div",{className:"db-pane",hidden:x!==a,children:f.jsx(ub,{data:x,active:t&&x===a,onComments:p(x.database.id),switcher:y})},x.database.id))})}const db={id:"db",title:"DB",description:"DB スキーマ(dbshape): テーブル・カラム・制約・CHECK の値の変化",icon:Vk,View:cb,badge:e=>e.databases.reduce((t,n)=>t+bs(n),0)||void 0};function fb(e){const t=new Map,n=new Map;for(const l of e.files){n.set(l.path,l);const a=t.get(l.dir)??[];a.push(l),t.set(l.dir,a)}const r=new Map,i=new Map;for(const l of e.edges)xp(r,l.from,l),xp(i,l.to,l);const o=[...t.keys()].sort(),s=new Set;for(const l of e.files)l.status!=="unchanged"&&s.add(l.dir);return{graph:e,filesByDir:t,edgesByFrom:r,edgesByTo:i,fileByPath:n,dirs:o,changedDirs:[...s].sort()}}function xp(e,t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])}function el(e,t){return e===0&&t>0?"added":t===0&&e>0?"removed":"unchanged"}function Sy(e,t){let n;for(const r of e)(r.dir===""||t===r.dir||t.startsWith(r.dir+"/"))&&(!n||r.dir.length>n.dir.length)&&(n=r);return n}function Cy(e,t,n){const r=Sy(e,t);if(!r||r.dir==="")return t||"(root)";const i=t===r.dir?".":t.slice(r.dir.length+1);return`${r.dir.split("/").pop()}:${i}`}function _e(e){const t=e.lastIndexOf("/");return t===-1?"":e.slice(0,t)}function tt(e){return e.slice(e.lastIndexOf("/")+1)}function pb(e){const t=new Map,n=r=>{let i=t.get(r);return i||(i={path:r,name:r===""?"(root)":tt(r),dirs:[],files:[],stats:{added:0,modified:0,removed:0,total:0}},t.set(r,i),r!==""&&n(_e(r)).dirs.push(i),i)};n("");for(const r of e.graph.files){n(r.dir).files.push(r);let i=r.dir;for(;i!==null;){const o=n(i);o.stats.total++,r.status!=="unchanged"&&o.stats[r.status]++,i=i===""?null:_e(i)}}for(const r of t.values())r.dirs.sort((i,o)=>i.name.localeCompare(o.name)),r.files.sort((i,o)=>i.path.localeCompare(o.path));return{root:n(""),byPath:t}}function Ss(e){const t=[];let n=e;for(;n!=="";)n=_e(n),n!==""&&t.unshift(n);return t}function tl(e){return e.added+e.modified+e.removed===0?"unchanged":e.added===e.total?"added":e.removed===e.total?"removed":"modified"}const hb=e=>`t:${e}`;function ka(e){if(e.length===0)return"";const t=e.map(r=>_e(r)?_e(r).split("/"):[]),n=[];for(let r=0;;r++){const i=t[0][r];if(i===void 0||t.some(o=>o[r]!==i))break;n.push(i)}return n.join("/")}function Ny(e){return[...e.files,...e.dirs.flatMap(Ny)]}function wr(e,t,n,r){const i=n.slice(2);if(n.startsWith("f:")){const o=e.fileByPath.get(i);return o?{id:n,kind:"file",label:`${tt(o.dir)}/${tt(o.path)}`,path:i,status:o.status,files:[o],pinned:r,depth:0}:null}if(n.startsWith("d:")){const o=t.get(i);return o?{id:n,kind:"dir",label:`${o.name}/`,path:i,status:tl(o.stats),files:Ny(o),pinned:r,scope:i,depth:0}:null}if(n.startsWith("r:")){const o=t.get(i);if(!o)return null;const s=o.files.filter(l=>l.status==="unchanged");return{id:n,kind:"rest",label:`${o.name}/`,suffix:` のほか ${s.length} ファイル`,path:i,status:"unchanged",files:s,pinned:r,depth:0}}if(n.startsWith("c:")){const o=t.get(i);return o?{id:n,kind:"container",label:`${o.name}/`,path:i,status:"unchanged",files:o.files,pinned:r,depth:0}:null}if(n.startsWith("p:")){const o=t.get(i);if(!o)return null;const s={added:0,modified:0,removed:0,total:o.files.length};for(const l of o.files)l.status!=="unchanged"&&s[l.status]++;return{id:n,kind:"package",label:o.name,suffix:"(パッケージ)",path:i,status:tl(s),files:o.files,pinned:r,depth:0}}return null}const Qt=(e,t)=>t===""||e===t||e.startsWith(t+"/");function Ed(e,t,n){const r=[];for(const i of t.files)for(const o of e.edgesByFrom.get(i.path)??[])o.external&&!n||t.scope!==void 0&&!o.external&&Qt(o.to,t.scope)||r.push(o);return r}const nl=(e,t)=>({from:e,to:t,before:0,after:0,added:0,removed:0,status:"unchanged"});function vp(e,t){t!=="added"&&e.before++,t!=="removed"&&e.after++,t==="added"&&e.added++,t==="removed"&&e.removed++}function jy(e,t){if(!t)return;const n=new Map((e.files??[]).map(r=>[r.path,r]));for(const r of t){const i=n.get(r.path);i?(i.status!==r.status&&(i.status="unchanged"),r.typeOnly||delete i.typeOnly):n.set(r.path,{...r})}e.files=[...n.values()].sort((r,i)=>r.path.localeCompare(i.path))}function rl(e,t,n){const r=new Map;for(const i of Ed(e,t,n)){const o=i.external?`x:${i.to}`:`d:${i.to}`;let s=r.get(o);s||(s={target:{id:o,dir:i.to,label:i.external?i.to:Cy(e.graph.modules,i.to),external:i.external},link:nl(t.id,o),fileLinks:new Map},r.set(o,s));const l=s.link;vp(l,i.status),i.typeOnly!==void 0&&(l.typeOnly=(l.typeOnly??!0)&&i.typeOnly);for(const a of i.files??[]){const u=hb(a.path);let c=s.fileLinks.get(u);c||s.fileLinks.set(u,c=nl(t.id,u)),vp(c,a.status),c.typeOnly=(c.typeOnly??!0)&&!!a.typeOnly}jy(l,i.files)}for(const{link:i,fileLinks:o}of r.values()){i.status=el(i.before,i.after);for(const s of o.values())s.status=el(s.before,s.after),s.typeOnly||delete s.typeOnly}return r}function _y(e,t,n,r=`g:${n}`){const i=nl(t.id,r),o=new Map;let s=!0;for(const l of Ed(e,t,!1)){if(l.external||!Qt(l.to,n))continue;const a=o.get(l.from)??{before:!1,after:!1};l.status!=="added"&&(a.before=!0),l.status!=="removed"&&(a.after=!0),o.set(l.from,a),s&&(s=l.typeOnly===!0),jy(i,l.files)}if(o.size===0)return null;for(const l of o.values())l.before&&i.before++,l.after&&i.after++,!l.before&&l.after&&i.added++,l.before&&!l.after&&i.removed++;return i.status=el(i.before,i.after),s&&(i.typeOnly=!0),i}function mb(e,t,n,r){const i=s=>{const l=wr(e,t,s,n.pinned);return l?(l.scope=n.scope??l.scope,l.kind==="file"&&(l.label=tt(l.path)),l):null};let o=[];if(n.kind==="dir"){const s=t.get(n.path);if(!s)return[];o=[...s.dirs.map(l=>i(`d:${l.path}`)),...s.files.map(l=>i(`f:${l.path}`))]}else(n.kind==="rest"||n.kind==="package")&&(o=n.files.map(s=>i(`f:${s.path}`)));return o.filter(s=>s!==null&&Ed(e,s,r).length>0)}function Hi(e,t){const n=new Set(t.files.map(o=>o.path)),r=new Set(t.files.map(o=>o.dir)),i=new Map;for(const o of e.graph.edges){if(o.external||n.has(o.from)||t.scope!==void 0&&Qt(_e(o.from),t.scope))continue;let s;if(o.files){const a=o.files.filter(u=>n.has(u.path));if(!a.length)continue;s={before:a.some(u=>u.status!=="added"),after:a.some(u=>u.status!=="removed"),typeOnly:a.every(u=>!!u.typeOnly)}}else{if(!r.has(o.to))continue;s={before:o.status!=="added",after:o.status!=="removed",typeOnly:!1}}const l=i.get(o.from);l?(l.before||(l.before=s.before),l.after||(l.after=s.after),l.typeOnly&&(l.typeOnly=s.typeOnly)):i.set(o.from,s)}return i}function Ty(e,t,n){if(!n.length)return null;const r=nl(e,t);for(const i of n)i.before&&r.before++,i.after&&r.after++,!i.before&&i.after&&r.added++,i.before&&!i.after&&r.removed++;return r.status=el(r.before,r.after),n.every(i=>i.typeOnly)&&(r.typeOnly=!0),r}function Gu(e){const t=e.slice(4);return e.startsWith("i:f:")?n=>n===t:e.startsWith("i:d:")?n=>_e(n)===t:n=>Qt(_e(n),t)}function gb(e,t,n,r){var s,l;if(n.startsWith("i:")){const a=wr(e,t,r,!1);if(!a)return null;const u=a.kind==="container"?{...a,files:a.files.filter(d=>d.path.endsWith(".go"))}:a,c=Gu(n);return Ty(n,r,[...Hi(e,u)].filter(([d])=>c(d)).map(([,d])=>d))}const i=wr(e,t,n,!1);if(!i)return null;if(r.startsWith("g:"))return _y(e,i,r.slice(2),r);const o=rl(e,i,!0);return r.startsWith("t:")?((l=o.get(`d:${_e(r.slice(2))}`))==null?void 0:l.fileLinks.get(r))??null:((s=o.get(r))==null?void 0:s.link)??null}function wp(e,t){const n={dir:t,target:!1,children:new Map},r=e.includes(t);for(const s of e){if(s===t)continue;let l=n;for(const a of(t?s.slice(t.length+1):s).split("/")){const u=l.dir?`${l.dir}/${a}`:a;let c=l.children.get(a);c||l.children.set(a,c={dir:u,target:!1,children:new Map}),l=c}l.target=!0}const i=(s,l)=>{const a=[...s.children.values()];if(!s.target&&a.length===1)return i(a[0],`${l}/${tt(a[0].dir)}`);if(a.length===0)return[{kind:"dir",dir:s.dir,label:l,self:!1}];const u=a.flatMap(c=>i(c,tt(c.dir)));return s.target&&u.push({kind:"dir",dir:s.dir,label:`${tt(s.dir)}(パッケージ)`,self:!0}),[{kind:"group",dir:s.dir,label:l,children:u}]},o=[...n.children.values()].flatMap(s=>i(s,tt(s.dir)));return r&&o.push({kind:"dir",dir:t,label:t?`${tt(t)}(パッケージ)`:"(ルート)",self:!0}),o}function yb(e,t,n,r,i,o=new Map,s=new Map){var Fe;const l=[],a=new Set,u=(B,ne,oe)=>{if(a.has(B.id))return;a.add(B.id);const he=B.kind==="file"?[]:mb(e,t,B,i);if(Object.assign(B,{depth:ne,parent:oe,canOpen:he.length>0,open:he.length>0&&(s.get(B.id)??!1)}),l.push(B),B.open)for(const Z of he)u(Z,ne+1,B.id)},c=n.map(B=>wr(e,t,B,!0)).filter(B=>B!==null);for(const B of c)B.isPin=!0;const d=new Map,h=new Map;for(const B of c)B.kind==="file"&&d.set(_e(B.path),[...d.get(_e(B.path))??[],B]);const p=[...c.filter(B=>B.kind!=="file").map(B=>({key:`${B.path}/`,box:!1,s:B,dir:B.path})),...[...d.keys()].map(B=>({key:B?`${B}/`:"",box:!0,s:null,dir:B}))].sort((B,ne)=>B.key.localeCompare(ne.key)||Number(B.box)-Number(ne.box));for(const B of p){if(!B.box){u(B.s,0,void 0);continue}const ne=d.get(B.dir).filter(ee=>!a.has(ee.id)).sort((ee,fe)=>ee.path.localeCompare(fe.path)),oe=ne.length?wr(e,t,`c:${B.dir}`,!0):null;if(!oe)continue;const he=oe.files;oe.files=ne.flatMap(ee=>ee.files);const Z={added:0,modified:0,removed:0,total:oe.files.length};for(const ee of oe.files)ee.status!=="unchanged"&&Z[ee.status]++;if(oe.status=tl(Z),a.add(oe.id),oe.depth=0,oe.canOpen=!0,oe.open=s.get(oe.id)??!0,oe.open||(oe.suffix=` ${ne.length} ファイル`),l.push(oe),h.set(oe.id,{files:ne,pkg:he}),oe.open)for(const ee of ne)ee.label=tt(ee.path),u(ee,1,oe.id)}if(r&&!n.includes(r)){const B=wr(e,t,r,!1);B&&u(B,0,void 0)}const y=l.filter(B=>B.depth===0),x=ka(y.map(B=>B.path));for(const B of y){const ne=x?B.path.slice(x.length+1):B.path;B.label=B.kind==="dir"||B.kind==="rest"||B.kind==="container"?`${ne}/`:ne}const E=l.map(B=>B.open?new Map:rl(e,B,i)),v=new Set,m=new Map;for(const B of E)for(const{target:ne}of B.values())ne.external?m.set(ne.id,ne):v.add(ne.dir);const g=ka([...v]),w=B=>g?B.slice(g.length+1):B,C=B=>{let ne=0,oe=0;return E.forEach((he,Z)=>{for(const ee of he.keys())B(ee)&&(ne+=Z,oe++)}),oe?ne/oe:0},S=B=>C(ne=>ne.startsWith("d:")&&(B.kind==="group"?Qt(ne.slice(2),B.dir):ne.slice(2)===B.dir)),$=B=>[...B].sort((ne,oe)=>{const he=ne.kind==="dir"&&ne.self?1:0,Z=oe.kind==="dir"&&oe.self?1:0;return he-Z||S(ne)-S(oe)||ne.label.localeCompare(oe.label)}),O=[],N=[],k=B=>{const ne=E.flatMap(oe=>{var he;return[...((he=oe.get(B))==null?void 0:he.fileLinks.values())??[]]});return{fileLinks:ne,files:[...new Set(ne.map(oe=>oe.to))]}},L=(B,ne,oe)=>{var ie;if(B.kind==="group"){const F=`g:${B.dir}`,J=o.get(F)??!0,se=[...v].filter(xe=>xe!==B.dir&&Qt(xe,B.dir)).length,ue=v.has(B.dir)?k(`d:${B.dir}`).files.length:0,Ie=v.has(B.dir)&&ue===0;if(O.push({id:F,kind:"group",dir:B.dir,label:B.label,fullLabel:w(B.dir),external:!1,depth:ne,parent:oe,canOpen:!0,open:J,folderCount:se+(Ie?1:0),directFileCount:ue}),J)for(const xe of $(B.children))L(xe,ne+1,F);else for(const xe of l){if(xe.open)continue;const Ne=_y(e,xe,B.dir,F);Ne&&N.push(Ne)}return}const he=`d:${B.dir}`,{fileLinks:Z,files:ee}=k(he),fe=F=>C(J=>J===he&&E.some(se=>{var ue;return(ue=se.get(J))==null?void 0:ue.fileLinks.has(F)})),ye=(F,J)=>{ee.sort((se,ue)=>fe(se)-fe(ue)||se.localeCompare(ue));for(const se of ee){const ue=se.slice(2);O.push({id:se,kind:"file",dir:B.dir,label:tt(ue),fullLabel:w(ue),external:!1,depth:F,parent:J,file:ue})}N.push(...Z)};if(B.self&&ee.length>0){ye(ne,oe);return}const V=ee.length>0&&(o.get(he)??!1);if(O.push({id:he,kind:"dir",dir:B.dir,label:B.label,fullLabel:B.self?`${w(B.dir)}(パッケージ)`:w(B.dir),external:!1,depth:ne,parent:oe,self:B.self,canOpen:ee.length>0,open:V,fileCount:ee.length}),!V){for(const F of E){const J=(ie=F.get(he))==null?void 0:ie.link;J&&N.push(J)}return}ye(ne+1,he)};for(const B of $(wp([...v],g)))L(B,0,void 0);const _=[...m.values()].sort((B,ne)=>C(oe=>oe===B.id)-C(oe=>oe===ne.id)||B.label.localeCompare(ne.label));for(const B of _){O.push({id:B.id,kind:"external",dir:B.dir,label:B.label,fullLabel:B.label,external:!0,depth:0});for(const ne of E){const oe=(Fe=ne.get(B.id))==null?void 0:Fe.link;oe&&N.push(oe)}}const R=(B,ne)=>{var oe;return ne.startsWith("t:")?!!((oe=B.get(`d:${_e(ne.slice(2))}`))!=null&&oe.fileLinks.has(ne)):ne.startsWith("g:")?[...B.keys()].some(he=>he.startsWith("d:")&&Qt(he.slice(2),ne.slice(2))):B.has(ne)},M=new Map,W=B=>{let ne=M.get(B.id);return ne||M.set(B.id,ne=rl(e,B,i)),ne};for(const B of N){const ne=h.get(B.from);ne&&(B.keys=ne.files.filter(oe=>R(W(oe),B.to)).map(oe=>`L:${oe.id}>${B.to}`))}const K=B=>B.endsWith(".go"),G=B=>{var ne;return B.kind==="file"&&!!((ne=B.parent)!=null&&ne.startsWith("c:"))&&K(B.path)},D=new Map,U=B=>{let ne=D.get(B.id);if(ne)return ne;const oe=h.get(B.id),he=oe.pkg.filter(Z=>K(Z.path));return ne=oe.files.some(Z=>K(Z.path))&&he.length?Hi(e,{...B,files:he}):new Map,D.set(B.id,ne),ne},b=B=>h.get(B.id).files.filter(ne=>!K(ne.path)),Y=l.map(B=>{if(G(B))return new Map;if(B.kind==="container"){const ne=U(B);if(B.open)return ne;const oe=Hi(e,{...B,files:b(B).flatMap(he=>he.files)});for(const[he,Z]of ne){const ee=oe.get(he);ee?(ee.before||(ee.before=Z.before),ee.after||(ee.after=Z.after),ee.typeOnly&&(ee.typeOnly=Z.typeOnly)):oe.set(he,{...Z})}return oe}return B.open?new Map:Hi(e,B)}),X=new Map,j=(B,ne)=>{if(ne.kind!=="container"||ne.open)return;const oe=Gu(B),he=`L:${B}>${ne.id}`,Z=[...U(ne).keys()].some(oe)?[he]:[];for(const ee of b(ne)){let fe=X.get(ee.id);fe||X.set(ee.id,fe=Hi(e,ee)),[...fe.keys()].some(oe)&&Z.push(`L:${B}>${ee.id}`)}return Z.length===1&&Z[0]===he?void 0:Z},I=new Set(Y.flatMap(B=>[...B.keys()])),T=new Set([...I].map(_e)),z=ka([...T]),q=B=>z?B.slice(z.length+1):B,Q=B=>{let ne=0,oe=0;return Y.forEach((he,Z)=>{for(const ee of he.keys())B(ee)&&(ne+=Z,oe++)}),oe?ne/oe:0},re=B=>{const ne=Gu(B);l.forEach((oe,he)=>{const Z=Ty(B,oe.id,[...Y[he]].filter(([fe])=>ne(fe)).map(([,fe])=>fe));if(!Z)return;const ee=j(B,oe);ee&&(Z.keys=ee),te.push(Z)})},P=[],te=[],ce=(B,ne,oe)=>{const he=[...I].filter(Z=>_e(Z)===B);he.sort((Z,ee)=>Q(fe=>fe===Z)-Q(fe=>fe===ee)||Z.localeCompare(ee));for(const Z of he){const ee=`i:f:${Z}`;P.push({id:ee,kind:"file",dir:B,label:tt(Z),fullLabel:q(Z),external:!1,depth:ne,parent:oe,file:Z}),re(ee)}},Ae=(B,ne,oe)=>{if(B.kind==="group"){const fe=`i:g:${B.dir}`,ye=o.get(fe)??!0;if(P.push({id:fe,kind:"group",dir:B.dir,label:B.label,fullLabel:q(B.dir),external:!1,depth:ne,parent:oe,canOpen:!0,open:ye,folderCount:[...T].filter(V=>V!==B.dir&&Qt(V,B.dir)).length,directFileCount:[...I].filter(V=>_e(V)===B.dir).length}),!ye)re(fe);else for(const V of[...B.children].sort((ie,F)=>Number(ie.kind==="dir"&&ie.self)-Number(F.kind==="dir"&&F.self)||Q(J=>ie.kind==="group"?Qt(_e(J),ie.dir):_e(J)===ie.dir)-Q(J=>F.kind==="group"?Qt(_e(J),F.dir):_e(J)===F.dir)||ie.label.localeCompare(F.label)))Ae(V,ne+1,fe);return}if(B.self)return ce(B.dir,ne,oe);const he=`i:d:${B.dir}`,Z=[...I].filter(fe=>_e(fe)===B.dir).length,ee=o.get(he)??!1;P.push({id:he,kind:"dir",dir:B.dir,label:B.label,fullLabel:q(B.dir),external:!1,depth:ne,parent:oe,canOpen:!0,open:ee,fileCount:Z}),ee?ce(B.dir,ne+1,he):re(he)},Se=wp([...T],z),be=B=>Q(ne=>B.kind==="group"?Qt(_e(ne),B.dir):_e(ne)===B.dir);for(const B of[...Se].sort((ne,oe)=>be(ne)-be(oe)||ne.label.localeCompare(oe.label)))Ae(B,0,void 0);return{sources:l,targets:O,links:N,targetPrefix:g,sourcePrefix:x,dependents:P,inLinks:te,dependentPrefix:z}}const xb=e=>e===""?"root":`d:${e}`,vb=e=>`f:${e}`,wb=e=>`r:${e}`,hn=e=>e==="root"?"":e.slice(2);function Cs(e,t,n,r){return{id:xb(e.path),kind:t,path:e.path,label:e.name,status:tl(e.stats),dir:e,full:r,children:n}}function Ku(e){return{id:vb(e.path),kind:"file",path:e.path,label:tt(e.path),status:e.status,file:e,children:[]}}function kb(e,t){return t&&e?`ほか ${t} フォルダ・${e} ファイル`:t?`ほか ${t} フォルダ`:`ほか ${e} ファイル`}function bb(e,t){const n=r=>{const i=[];for(const o of r.dirs){const s=t.has(o.path);i.push(Cs(o,s?"open":"dir",s?n(o):[],!0))}if(r.path===""||t.has(r.path))for(const o of r.files)i.push(Ku(o));return i};return $y(n(e))}function Eb(e,t,n,r,i=new Set){const o=new Set;for(const c of e.graph.files)c.status!=="unchanged"&&o.add(c.dir);for(const c of r)n.has(c)&&o.add(c);const s=new Set;for(const c of e.graph.files)if(c.status!=="unchanged")for(const d of e.edgesByFrom.get(c.path)??[])!d.external&&d.to!==c.dir&&n.has(d.to)&&s.add(d.to);const l=new Set([""]);for(const c of e.graph.files)if(c.status!=="unchanged"){l.add(c.dir);for(const d of Ss(c.dir))l.add(d)}for(const c of s)for(const d of Ss(c))l.add(d);const a=new Set(l);for(const c of o){a.add(c);for(const d of Ss(c))a.add(d)}const u=c=>{const d=r.has(c.path),h=[],p=[],y=[],x=[];for(const E of c.dirs){const v=l.has(E.path)||s.has(E.path);if(!v&&!d){y.push(E);continue}let m;a.has(E.path)?i.has(E.path)&&l.has(E.path)?m={...Cs(E,"open",[],r.has(E.path)),collapsed:!0}:m=Sb({...Cs(E,"open",u(E),r.has(E.path)),revealedOnly:!l.has(E.path)}):m=Cs(E,"dir",[],!1),v?h.push(m):(y.push(E),p.push(m))}for(const E of c.files)E.status!=="unchanged"?h.push(Ku(E)):(x.push(E),d&&p.push(Ku(E)));return(x.length||y.length)&&h.push({id:wb(c.path),kind:"rest",path:c.path,label:kb(x.length,y.length),status:"unchanged",full:d,hiddenFiles:x,hiddenDirs:y,children:p}),h};return $y(u(t))}function Sb(e){if(e.kind!=="open"||e.full||e.collapsed||e.children.length!==1)return e;const t=e.children[0];return t.kind!=="open"?e:{...t,label:`${e.label}/${t.label}`}}function $y(e){const t=new Map,n=new Map,r=(o,s)=>{n.set(o.path,s);for(const l of o.files)t.set(l.path,s);for(const l of o.dirs)r(l,s)},i=o=>{switch(o.kind){case"file":t.set(o.path,o.id);break;case"rest":if(!o.full)for(const s of o.hiddenFiles??[])t.set(s.path,o.id);break;case"dir":r(o.dir,o.id);break;case"open":o.collapsed?r(o.dir,o.id):n.set(o.path,o.id);break}o.children.forEach(i)};return e.forEach(i),{roots:e,fileRep:t,pkgRep:n}}const Cb=(e,t)=>`L:${e}>${t}`,Ri=e=>`I:${e}`;function _r(e){if(e.startsWith("L:")){const t=e.slice(2),n=t.indexOf(">");return{kind:"link",from:t.slice(0,n),to:t.slice(n+1)}}return{kind:"item",id:e.slice(2)}}const Iy=gb;function Ly(e,t,n){const r=_r(n);if(r.kind==="link"){const i=Iy(e,t,r.from,r.to);return!i||i.after===0?"resolved":"open"}if(r.id.startsWith("f:")){const i=e.fileByPath.get(hn(r.id));return!i||i.status==="removed"?"resolved":"open"}return t.has(hn(r.id))?"open":"resolved"}function gi(e,t,n){const r=n.targets.map(o=>Ly(e,t,o)),i=r.filter(o=>o==="resolved").length;return i===0?"open":i===r.length?"resolved":"partial"}function qu(e,t){const n=Sy(e.graph.modules,t);if(!n)return t;const r=n.dir===""?t:t===n.dir?"":t.slice(n.dir.length+1);return r?`${n.path}/${r}`:n.path}function ba(e,t,n){if(n.startsWith("i:")){const s=n.slice(4);return n.startsWith("i:f:")?s:n.startsWith("i:d:")?`${s}/ 直下のファイル`:`${s}/ 配下`}const r=hn(n);if(n.startsWith("f:"))return r;if(n.startsWith("d:"))return`${r}/ 配下`;if(n.startsWith("p:"))return`${r}/ 直下のファイル(パッケージ ${tt(r)})`;if(n.startsWith("c:"))return`パッケージ ${r}/`;const i=t.get(r),o=i?i.files.filter(s=>s.status==="unchanged").length:0;return`${r}/ の変更のないファイル ${o} 個`}function Nb(e,t,n){if(t.startsWith("x:"))return`${t.slice(2)}(外部パッケージ)`;if(t.startsWith("t:"))return t.slice(2);const r=t.slice(2),i=t.startsWith("g:")?`${qu(e,r)}/ 配下`:qu(e,r),o=((n==null?void 0:n.files)??[]).filter(s=>s.status!=="removed").map(s=>s.path.slice(r.length+1));return o.length?t.startsWith("g:")?`${i}(${o.join(", ")})`:`${i}/(${o.join(", ")})`:i}function jb(e,t){if(!e||e.after===0)return"現在は存在しない(解消済み?)";const n=e.typeOnly?"、型のみ":"";if(t.startsWith("f:"))return(e.status==="added"?"今回追加した import":"既存の import")+n;const r=[`import しているファイル 変更前 ${e.before} → 変更後 ${e.after}`];return e.added&&r.push(`今回追加 ${e.added}`),e.removed&&r.push(`今回削除 ${e.removed}`),r.join("、")}function _b(e,t,n,r=3){const i=wr(e,t,`r:${n}`,!1);if(!i||i.files.length===0)return null;const o=[...rl(e,i,!1).values()].filter(({link:l})=>l.before>0).sort((l,a)=>a.link.before-l.link.before).slice(0,r);if(o.length===0)return`${n}/ の変更のないファイル ${i.files.length} 個は、このリポジトリ内のパッケージを import していません`;const s=o.map(({target:l,link:a})=>`${qu(e,l.dir)} (${a.before})`).join(", ");return`${n}/ の変更のないファイル ${i.files.length} 個の主な依存先: ${s}`}function Ay(e,t,n,r={}){const i=r.includeResolved?n:n.filter(l=>gi(e,t,l)!=="resolved"),o=e.graph,s=r.header===!1?[]:[...Tl(o),"対象: コードの依存関係(depshape)",""];return i.forEach((l,a)=>{var x;const u=l.targets.map(_r).filter(E=>E.kind==="link"),c=l.targets.map(_r).filter(E=>E.kind==="item"),d=[];if(u.length){d.push(u.length===1?"依存:":`依存(${u.length}件):`);for(const E of u){const v=Iy(e,t,E.from,E.to),m=E.from.startsWith("i:")?ba(e,t,E.to):Nb(e,E.to,v);d.push(` - ${ba(e,t,E.from)} → ${m}(${jb(v,E.from.replace(/^i:/,""))})`)}}if(c.length){d.push(c.length===1?"対象:":`対象(${c.length}件):`);for(const E of c){const v=hn(E.id);if(E.id.startsWith("f:")){const m=e.fileByPath.get(v),g=[];!m||m.status==="removed"?g.push("現在は存在しない"):(m.status==="added"&&g.push("今回追加"),m.status==="modified"&&g.push("今回変更")),d.push(` - ファイル ${v}${g.length?`(${g.join("、")})`:""}`)}else d.push(` - ${E.id.startsWith("d:")?`フォルダ ${v}/`:ba(e,t,E.id)}`)}}const h=new Set;for(const E of u)E.from.startsWith("f:")&&h.add(((x=e.fileByPath.get(hn(E.from)))==null?void 0:x.dir)??"");const p=[...h].filter(Boolean).map(E=>_b(e,t,E)).filter(E=>!!E);for(const E of p)d.push(`参考: ${E}`);const y=gi(e,t,l);s.push(`${a+1}.${y==="partial"?"(一部は解消済み)":y==="resolved"?"(解消済み?)":""}`),s.push(...d.map(E=>` ${E}`)),s.push(` コメント: ${l.body.trim().replace(/\n/g,`
|
|
73
|
-
`)}`),s.push("")}),{text:s.join(`
|
|
74
|
-
`).trimEnd()+`
|
|
75
|
-
`,included:i.length,skipped:n.length-i.length}}function Yu(e,t){var i;const n=hn(t);if(t.startsWith("f:")){const o=n.slice(0,n.lastIndexOf("/"));return`${tt(o)}/${tt(n)}`}const r=((i=e.get(n))==null?void 0:i.name)??tt(n);return t.startsWith("r:")?`${r}/ のほか`:`${r}/`}function kp(e,t,n){const r=_r(n);if(r.kind==="item")return Yu(t,r.id);const i=r.to.startsWith("x:")?r.to.slice(2):Cy(e.graph.modules,r.to.slice(2));return`${Yu(t,r.from)} → ${i}`}function Tb(e){const t=_r(e.targets[0]??"I:root");return t.kind==="link"?t.from:t.id}const $b=H.forwardRef(function(t,n){const{model:r,tree:i,comments:o,selection:s,draft:l}=t,[a,u]=H.useState("open"),d=o.map(x=>({c:x,state:gi(r,i,x)})).filter(x=>a==="all"||x.state!=="resolved"),h=new Map;for(const x of d){const E=Tb(x.c);h.set(E,[...h.get(E)??[],x])}const p=[...h.entries()].sort((x,E)=>hn(x[0]).localeCompare(hn(E[0]))),y=l.editingId!==null||l.body!==""||s.length>0;return f.jsxs("aside",{className:"comment-sidebar",children:[f.jsxs("div",{className:"dep-panel-head",children:[f.jsx("strong",{children:"コメント"}),f.jsxs("select",{value:a,onChange:x=>u(x.target.value),title:"表示するコメント",children:[f.jsx("option",{value:"open",children:"未対応のみ"}),f.jsx("option",{value:"all",children:"すべて"})]}),f.jsx("span",{className:"tspacer"}),f.jsx("button",{className:"icon-btn",onClick:t.onClose,title:"閉じる",children:"×"})]}),f.jsx("div",{className:"comment-sidebar-list",children:d.length===0?f.jsx("div",{className:"dep-panel-empty",children:o.length===0?"まだコメントはありません。パネルの矢印や箱をクリック(⌘ / Shift で複数)するか、ツリーの行の 💬 から書けます。":"未対応のコメントはありません。「すべて」に切り替えると解消済み?のものも見られます。"}):p.map(([x,E])=>f.jsxs("section",{className:"comment-group",children:[f.jsx("div",{className:"comment-group-head",title:hn(x),children:Yu(i,x)}),E.map(({c:v,state:m})=>{var g;return f.jsx(pd,{body:v.body,state:m,meta:v.targets.length>1?`${v.targets.length}件`:void 0,lit:(g=t.hoveredKeys)==null?void 0:g.some(w=>v.targets.includes(w)),editing:l.editingId===v.id,onMouseEnter:()=>t.onHoverComment(v.targets),onMouseLeave:()=>t.onHoverComment(null),top:f.jsx("ul",{className:"comment-targets",onClick:()=>t.onShow(v),title:"クリックで図に表示",children:v.targets.map(w=>f.jsx("li",{className:Ly(r,i,w)==="resolved"?"resolved":"",children:kp(r,i,w)},w))}),onCopy:()=>Io(Ay(r,i,[v],{includeResolved:!0}).text),onEdit:()=>t.onEdit(v),onDelete:()=>t.onDelete(v.id)},v.id)})]},x))}),f.jsx(hd,{ref:n,className:"comment-composer",editing:l.editingId!==null,value:l.body,placeholder:"指摘を書く(例: usecase を経由する形にしてください)",onChange:x=>t.onDraft({...l,body:x}),onSave:t.onSave,onCancel:t.onCancel,canSave:s.length>0,showCancel:y,top:f.jsxs("div",{className:"composer-targets",children:[f.jsx("span",{className:"muted",children:l.editingId?"編集中のコメント先:":"コメント先:"}),s.length===0?f.jsx("span",{className:"muted",children:"矢印や箱・行を選ぶとここに入ります(⌘ / Shift で複数)"}):s.map(x=>f.jsxs("span",{className:`chip${x.startsWith("L:")?" link":""}`,title:x,children:[kp(r,i,x),f.jsx("button",{onClick:()=>t.onRemoveTarget(x),title:"外す",children:"×"})]},x))]})})]})});function Ib(e,t,n){if(n(e)<=t)return e;const r=[...e];let i=r.length;for(;i>0&&n(r.slice(0,i).join("")+"…")>t;)i--;return r.slice(0,i).join("")+"…"}function Lb(e,t,n){const r=e.endsWith("/"),i=(r?e.slice(0,-1):e).split("/"),o=i.pop()+(r?"/":""),s=i.length,l=[];s&&l.push(i.join("/")+"/");for(let a=s-2;a>=1;a--)l.push(`${i[0]}/…/${i.slice(s-a).join("/")}/`);s>=2&&l.push(`…/${i[s-1]}/`,`${i[0]}/…/`),s&&l.push("…/");for(const a of l)if(n(a)+n(o)<=t)return{dir:a,name:o};return{dir:s?"…/":"",name:Ib(o,t-(s?n("…/"):0),n)}}function Ry(e,t){const n=t.startsWith("i:")?t.slice(2):t,r=n.slice(2);switch(n[0]){case"f":case"t":return{what:"file",path:r};case"g":return{what:"tree",path:r};case"d":return{what:e==="S"?"tree":"dir",path:r};case"x":return{what:"ext",path:r};default:return{what:"dir",path:r}}}const Ab=(e,t)=>{const n=Ry(e,t);return`${e}|${n.what}|${n.path}`},Rb=(e,t)=>t===""||e===t||e.startsWith(`${t}/`);function Oy(e,t,n){const[r,i,...o]=e.split("|");if(r!==t)return!1;const s=o.join("|"),l=Ry(t,n);switch(i){case"tree":return l.what!=="ext"&&Rb(l.path,s);case"dir":return l.what==="dir"&&l.path===s||l.what==="file"&&_e(l.path)===s;default:return i===l.what&&s===l.path}}const bp=(e,t,n)=>[...e].some(r=>Oy(r,t,n));function Xu(e,t,n){return new Set([...e].filter(r=>!Oy(r,t,n)))}const My=(e,t)=>ty("depshape",e,t),Py=(e,t)=>ny("depshape",e,t),Ob=7.3,Qe=28,Ea=8,yn=10,Mb=18,Pb=18,Ns=120,Db=20,zb=16,Fb=14,Bb="12px ui-monospace, SFMono-Regular, Menlo, monospace";let Mr;function Un(e){if(Mr===void 0&&(Mr=document.createElement("canvas").getContext("2d"),Mr&&(Mr.font=Bb)),Mr)return Mr.measureText(e).width;let t=0;for(const n of e)t+=/[ -鿿-]/.test(n)?2:1;return t*Ob}function Ep(e,t){if(Un(e)<=t)return e;const n=[...e];let r=0;for(;r<n.length&&Un("…"+n.slice(r).join(""))>t;)r++;return"…"+n.slice(r).join("")}const Ub=(e,t)=>Lb(e,t,Un);function Sp(e,t,n,r,i){const o=1-e;return o*o*o*t+3*o*o*e*n+3*o*e*e*r+e*e*e*i}function Cp(e){const t=Math.max(e.before,e.after,1);return 1.6+Math.min(3.2,Math.log2(t)*.8)+(e.status==="unchanged"?0:.5)}function Np(e,t){const n=e.map(()=>0);let r=[...e.keys()],i=t;for(;r.length;){const o=i/r.length,s=r.filter(l=>e[l]<=o);if(!s.length){for(const l of r)n[l]=Math.max(Ns,o);break}for(const l of s)n[l]=e[l],i-=e[l];r=r.filter(l=>!s.includes(l))}return n}const Sa=e=>new Map(e.map(t=>[t.id,t.parent])),Ca=(e,t,n)=>{for(let r=e.get(t);r;r=e.get(r))if(r===n)return!0;return!1},Na=e=>e.metaKey||e.ctrlKey||e.shiftKey;function Hb(e){const{model:t,tree:n,pins:r,hovered:i,targetOpen:o,sourceOpen:s}=e,[l,a]=H.useState(()=>My("external","0")==="1"),u=H.useMemo(()=>yb(t,n,r,i,l,o,s),[t,n,r,i,l,o,s]),c=H.useMemo(()=>Sa(u.sources),[u]),d=H.useMemo(()=>Sa(u.targets),[u]),h=H.useMemo(()=>Sa(u.dependents),[u]),p=(A,de)=>Ca(c,A,de),y=(A,de)=>Ca(d,A,de),x=(A,de)=>Ca(h,A,de),E=A=>A.depth*zb,v=A=>A.some(de=>de.canOpen)?Fb:0,m=v(u.sources),g=v(u.targets),w=v(u.dependents),C=A=>[A.folderCount?`${A.folderCount} フォルダ`:"",A.directFileCount?`${A.directFileCount} ファイル`:""].filter(Boolean).join("・"),S=A=>A.open?"":A.kind==="group"?` ${C(A)}`:A.fileCount?` ${A.fileCount} ファイル`:"",[$,O]=H.useState(null),N=H.useMemo(()=>{const A=(de,me)=>new Set(e.hidden.size?me.filter(we=>bp(e.hidden,de,we.id)).map(we=>we.id):[]);return{S:A("S",u.sources),T:A("T",u.targets),I:A("I",u.dependents)}},[u,e.hidden]),k=H.useMemo(()=>u.links.filter(A=>!N.S.has(A.from)&&!N.T.has(A.to)),[u,N]),L=H.useMemo(()=>u.inLinks.filter(A=>!N.I.has(A.from)&&!N.S.has(A.to)),[u,N]),[_,R]=H.useState(null);H.useEffect(()=>{if(!_)return;const A=()=>R(null),de=me=>me.key==="Escape"&&A();return window.addEventListener("pointerdown",A),window.addEventListener("keydown",de),window.addEventListener("scroll",A,!0),window.addEventListener("blur",A),()=>{window.removeEventListener("pointerdown",A),window.removeEventListener("keydown",de),window.removeEventListener("scroll",A,!0),window.removeEventListener("blur",A)}},[_]);const M=(A,de)=>me=>{me.preventDefault(),me.stopPropagation(),R({x:me.clientX,y:me.clientY,col:A,id:de})},W=A=>k.filter(de=>de.from===A||p(de.from,A)),K=A=>new Set(u.links.filter(de=>de.from===A.id||p(de.from,A.id)).map(de=>de.to)).size,G=A=>k.filter(de=>de.to===A||y(de.to,A)),D=A=>L.filter(de=>de.from===A||x(de.from,A)),U=A=>A.keys??[Cb(A.from,A.to)],b=A=>[...new Set(A.flatMap(U))],Y=H.useRef(null),[X,j]=H.useState(600);H.useEffect(()=>{const A=Y.current;if(!A)return;const de=new ResizeObserver(()=>j(A.clientWidth));return de.observe(A),j(A.clientWidth),()=>de.disconnect()},[u.sources.length>0]),H.useEffect(()=>{var A,de;i&&((de=(A=Y.current)==null?void 0:A.querySelector(`[data-src="${CSS.escape(i)}"]`))==null||de.scrollIntoView({block:"nearest"}))},[i,u]);const I=u.dependents.length>0,T=I?3:2,z=Math.round(Math.min(110,Math.max(44,X*.26/T))),q=44,Q=24+Db,re=A=>A.label+(A.suffix??"")+(K(A)===0&&!A.open?" 依存なし":""),P=(A,de)=>Math.max(Ns,...A.map(me=>Q+E(me)+de+Un(me.label+S(me)))),te=Math.max(Ns,...u.sources.map(A=>q+E(A)+m+Un(re(A)))),ce=P(u.targets,g),Ae=I?P(u.dependents,w):0,Se=Math.max(Ns*T,X-yn*2-z*(T-1)-4),[be,Fe,B]=I?Np([Ae,te,ce],Se):[0,...Np([te,ce],Se)],ne=yn,oe=I?ne+be+z:yn,he=oe+Fe+z,Z=he+B+yn,ee=A=>A?A*(Qe+Ea)-Ea:0,ye=yn+(I?Pb:0),V=ye+(u.targetPrefix||u.sourcePrefix||u.dependentPrefix?Mb:0),ie=Math.max(ee(u.sources.length),ee(u.targets.length),ee(u.dependents.length)),F=A=>{const de=V+(ie-ee(A.length))/2;return new Map(A.map((me,we)=>[me.id,de+we*(Qe+Ea)]))},J=F(u.sources),se=F(u.targets),ue=F(u.dependents),Ie=V+ie+yn,xe=(A,de)=>$===null?!1:de?A.from===$||x(A.from,$)||A.to===$||p(A.to,$):A.from===$||p(A.from,$)||A.to===$||y(A.to,$),Ne=[...k,...L].some(A=>U(A).some(de=>e.selection.has(de))),Le={unchanged:0,removed:1,added:2},dt=A=>[...A].sort((de,me)=>Le[de.status]-Le[me.status]),ft=A=>A?`${t.graph.repoRoot}/${A}`:t.graph.repoRoot,sn=A=>`${A.label}${A.suffix??""}`,Si=A=>A.kind==="group"?`${A.fullLabel}/ 配下`:A.kind==="dir"&&!A.file&&A.id.startsWith("i:")?`${A.fullLabel}/ 直下`:A.fullLabel,Ar=(A,de,me)=>{if(de)return[A.status==="added"?"今回追加した import":A.status==="removed"?"今回削除した import":"既存の import"];const we=[`import しているファイル: 変更前 ${A.before} → 変更後 ${A.after}${me!==void 0?`(${me} ファイル中)`:""}`];return(A.added||A.removed)&&we.push(`うち 今回追加 ${A.added} / 今回削除 ${A.removed}`),we},pt=(A,de,me)=>{var Rt;const we=[`${sn(de)} → ${Si(me)}${A.typeOnly?"(型のみの import)":""}`];if(we.push(...Ar(A,de.kind==="file",de.files.filter(Ot=>Ot.status!=="removed").length)),(Rt=A.files)!=null&&Rt.length){const Ot={added:"+",removed:"−",unchanged:"・"};we.push("import しているファイル:");for(const Mt of A.files.slice(0,12))we.push(` ${Ot[Mt.status]} ${Mt.path.slice(me.dir?me.dir.length+1:0)}`);A.files.length>12&&we.push(` …ほか ${A.files.length-12} 件`)}return we.join(`
|
|
76
|
-
`)},Ln=(A,de,me)=>[`${Si(de)} → ${sn(me)}${A.typeOnly?"(型のみの import)":""}`,...Ar(A,de.kind==="file")].join(`
|
|
77
|
-
`),At=(A,de,me,we,Rt,Ot,Mt,Pt)=>{const Dt=z/2,zt=U(A),ln=zt.length>0&&zt.every(Ct=>e.selection.has(Ct)),st=zt.some(Ct=>{var Rr;return(Rr=e.litKeys)==null?void 0:Rr.has(Ct)}),Po=zt.reduce((Ct,Rr)=>Ct+(e.commentCounts.get(Rr)??0),0),An=xe(A,Ot),Rn=`M${de},${me} C${de+Dt},${me} ${we-Dt},${Rt} ${we},${Rt}`,On=Ct=>[Sp(Ct,de,de+Dt,we-Dt,we),Sp(Ct,me,me,Rt,Rt)];return f.jsxs("g",{className:`plink${An||st?" active":""}${ln?" selected":""}`,onClick:Ct=>e.onSelectKeys(zt,Na(Ct)),onMouseEnter:()=>e.onHoverKey(zt),onMouseLeave:()=>e.onHoverKey(null),children:[(ln||st)&&f.jsx("path",{d:Rn,className:st?"psel lit":"psel",style:{strokeWidth:Cp(A)+7}}),f.jsx("path",{d:Rn,className:`medge ${A.status}${A.typeOnly?" typeonly":""}${An||ln||st?" active":""}`,style:{strokeWidth:Cp(A)},markerEnd:`url(#parrow-${A.status})`}),f.jsx("path",{d:Rn,className:"phit",children:f.jsx("title",{children:`${Mt}
|
|
78
|
-
クリックで選択(⌘ / Shift で追加)`})}),Po>0&&f.jsxs("g",{className:"pcomment",children:[f.jsx("circle",{cx:On(.5)[0],cy:On(.5)[1],r:7}),f.jsx("text",{x:On(.5)[0],y:On(.5)[1]+3.5,textAnchor:"middle",children:Po})]}),Pt!==null&&f.jsx("text",{x:On(Pt)[0],y:On(Pt)[1]-4,textAnchor:"middle",className:"pcount",children:A.before!==A.after?`${A.before}→${A.after}`:A.after})]},`${A.from}>${A.to}`)},qd=(A,de)=>{const{dir:me,name:we}=Ub(A,de);return f.jsxs(f.Fragment,{children:[me&&f.jsx("tspan",{className:"pdir",children:me}),f.jsx("tspan",{className:"pname",children:we})]})},Yd=(A,de)=>{var Xd;const me=de==="dependent",we=(me?ue:se).get(A.id),Rt=me?ne:he,Ot=me?be:B,Mt=me?w:g,Pt=Rt+E(A),Dt=Ot-E(A),zt=A.file?`f:${A.file}`:A.kind==="group"||me?`d:${A.dir}`:A.self?`p:${A.dir}`:A.id,ln=r.includes(zt),st=me?D(A.id):G(A.id),Po=st.length>0&&st.every(ar=>ar.status==="added"),An=A.file?(Xd=t.fileByPath.get(A.file))==null?void 0:Xd.status:void 0,Rn=S(A),On=me?"import している側の":"import している ",Ct=A.kind==="group"?C(A):`import している ${A.fileCount} ファイル`,Rr=A.canOpen?A.open?`
|
|
79
|
-
▾ でまとめる`:`
|
|
80
|
-
▸ で開いて、${Ct}を表示`:"",gv=A.external?`${A.dir}(外部パッケージ)`:A.file?`${ft(A.file)}${An==="added"?"(今回追加したファイル)":An==="modified"?"(今回変更したファイル)":""}`:A.kind==="group"?`${ft(A.dir)}/ 配下(${On}${C(A)}をまとめた行)`:me?`${ft(A.dir)}/ 直下の、import しているファイル`:`${ft(A.dir)}${A.self?`
|
|
81
|
-
このパッケージ(フォルダ直下のファイル)だけ。下のフォルダは含まない`:""}`,yv=me?"ここから出る依存":"ここに入る依存";return f.jsxs("g",{className:`pnode target ${A.kind}${me?" dependent":""}${(me?N.I:N.T).has(A.id)?" hid":""}${A.self?" self":""}${A.open?" open":""}${Po?" new":""}${ln?" pinned":""}${An&&An!=="unchanged"?` f-${An}`:""}`,onMouseEnter:()=>O(A.id),onMouseLeave:()=>O(null),onClick:ar=>e.onSelectKeys(b(st),Na(ar)),onContextMenu:M(me?"I":"T",A.id),children:[f.jsx("title",{children:`${gv}
|
|
82
|
-
クリックで${yv}をすべて選択${Rr}
|
|
83
|
-
右クリックで線を非表示 / 表示`}),f.jsx("rect",{x:Pt,y:we,width:Dt,height:Qe,rx:6}),A.canOpen&&f.jsxs("g",{className:"pchev",onClick:ar=>{ar.stopPropagation(),e.onToggleTarget(A.id,!A.open)},children:[f.jsx("title",{children:A.open?"まとめる":`開いて、${Ct}を表示`}),f.jsx("rect",{x:Pt,y:we,width:10+Mt,height:Qe}),f.jsx("text",{x:Pt+8,y:we+Qe/2+4,children:A.open?"▾":"▸"})]}),f.jsxs("text",{x:Pt+10+Mt,y:we+Qe/2+4,className:"plabel",children:[A.external?Ep(A.label,Dt-Q-Mt):qd(A.label,Dt-Q-Mt-(Rn?Un(Rn):0)),Rn&&f.jsx("tspan",{className:"pnone",children:Rn})]}),!A.external&&f.jsxs("g",{className:`pbtn${ln?" on":""}`,onClick:ar=>{ar.stopPropagation(),e.onTogglePin(zt)},children:[f.jsx("title",{children:ln?"ピン留め中(クリックでピン留めを外す)":"ピン留めして、この先の依存をたどる"}),f.jsx("rect",{x:Pt+Dt-26,y:we+4,width:20,height:Qe-8,rx:4}),f.jsx(Fu,{on:ln,x:Pt+Dt-23,y:we+Qe/2-7})]})]},A.id)},Hl=(A,de,me)=>A&&f.jsxs("text",{x:de,y:ye+10,className:"pcaption",children:[f.jsx("title",{children:ft(A)}),Ep(`${A}/ 以下`,me)]});return f.jsxs("div",{className:"dep-panel",children:[f.jsxs("div",{className:"dep-panel-head",children:[f.jsx("strong",{children:"依存の可視化"}),f.jsxs("span",{className:"muted",children:[r.length?`ピン留め ${r.length}`:"",i?`${r.length?" + ":""}ホバー中 1`:""]}),f.jsx("span",{className:"tspacer"}),f.jsxs("label",{className:"ds-check",title:"依存先の列に、npm パッケージや Go の標準・外部パッケージも描きます(上の差分の数には含みません)",children:[f.jsx("input",{type:"checkbox",checked:l,onChange:A=>{a(A.target.checked),Py("external",A.target.checked?"1":"0")}}),"外部パッケージも表示"]}),f.jsx("button",{className:"ds-btn",onClick:e.onClearPins,disabled:r.length===0,children:"ピンをすべて外す"})]}),u.sources.length===0?f.jsxs("div",{className:"dep-panel-empty",children:["左のツリーの行にホバーすると、ここに表示され、右に依存先(使っているもの)、左に依存元(使っている側)が出ます。",f.jsx("br",{}),"ピンのアイコンでピン留めすると表示し続けるので、複数並べて依存の形を比べられます。"]}):f.jsx("div",{className:"dep-panel-scroll",ref:Y,children:f.jsxs("svg",{width:Z,height:Ie,className:`panel-svg${$||e.litKeys?" hovering":""}${Ne?" selecting":""}`,children:[f.jsx("defs",{children:["unchanged","added","removed"].map(A=>f.jsx("marker",{id:`parrow-${A}`,viewBox:"0 0 8 8",refX:"7",refY:"4",markerWidth:"8",markerHeight:"8",markerUnits:"userSpaceOnUse",orient:"auto",children:f.jsx("path",{d:"M0,0 L8,4 L0,8 z",className:`arrowhead ${A}`})},A))}),I&&f.jsxs("g",{className:"ptitle",children:[f.jsx("text",{x:ne,y:yn+10,children:"依存元(使っている側)"}),f.jsx("text",{x:oe,y:yn+10,children:"ピン留め"}),f.jsx("text",{x:he,y:yn+10,children:"依存先(使っているもの)"})]}),Hl(u.dependentPrefix,ne,be),Hl(u.sourcePrefix,oe,Fe),Hl(u.targetPrefix,he,B),dt(L).map(A=>{const de=u.dependents.find(we=>we.id===A.from),me=u.sources.find(we=>we.id===A.to);return At(A,ne+be,ue.get(A.from)+Qe/2,oe+E(me)-1,J.get(A.to)+Qe/2,!0,Ln(A,de,me),de.kind!=="file"?.2:null)}),dt(k).map(A=>{const de=u.sources.find(we=>we.id===A.from),me=u.targets.find(we=>we.id===A.to);return At(A,oe+Fe,J.get(A.from)+Qe/2,he+E(me)-1,se.get(A.to)+Qe/2,!1,pt(A,de,me),de.kind!=="file"?.8:null)}),u.dependents.map(A=>Yd(A,"dependent")),u.sources.map(A=>{const de=J.get(A.id),me=K(A),we=oe+E(A),Rt=Fe-E(A),Ot=A.kind==="container",Mt=me===0&&!A.open,Pt=Ot?`/
|
|
84
|
-
ピン留めした ${A.files.length} ファイルをまとめた箱(Go ではこの箱がパッケージで、依存元の線はここに届きます)`:A.kind==="file"?"":`
|
|
85
|
-
${A.files.length} ファイル`,Dt=b([...W(A.id),...Ot?L.filter(st=>st.to===A.id):[]]),zt=Ot?"ファイルごと":"中のフォルダ・ファイルごと",ln=A.canOpen?A.open?`
|
|
86
|
-
▾ でまとめる`:`
|
|
87
|
-
▸ で開いて、${zt}に分ける`:"";return f.jsxs("g",{"data-src":A.id,className:`pnode source ${A.kind} ${A.status}${N.S.has(A.id)?" hid":""}${A.pinned?" pinned":" temp"}${A.depth?" child":""}${A.open?" open":""}`,onMouseEnter:()=>O(A.id),onMouseLeave:()=>O(null),onClick:st=>e.onSelectKeys(Dt,Na(st)),onContextMenu:M("S",A.id),children:[f.jsx("title",{children:`${ft(A.path)}${Pt}
|
|
88
|
-
依存先 ${me}
|
|
89
|
-
クリックで${Ot?"この箱に出入りする":"ここから出る"}依存をすべて選択${ln}
|
|
90
|
-
右クリックで線を非表示 / 表示`}),f.jsx("rect",{x:we,y:de,width:Rt,height:Qe,rx:6}),A.canOpen&&f.jsxs("g",{className:"pchev",onClick:st=>{st.stopPropagation(),e.onToggleSource(A.id,!A.open)},children:[f.jsx("title",{children:A.open?"まとめる":`開いて、${zt}に分ける`}),f.jsx("rect",{x:we,y:de,width:10+m,height:Qe}),f.jsx("text",{x:we+8,y:de+Qe/2+4,children:A.open?"▾":"▸"})]}),f.jsxs("text",{x:we+10+m,y:de+Qe/2+4,className:"plabel",children:[qd(A.label,Rt-q-m-Un(A.suffix??"")-(Mt?Un(" 依存なし"):0)),A.suffix&&f.jsx("tspan",{className:"psuffix",children:A.suffix}),Mt&&f.jsx("tspan",{className:"pnone",children:" 依存なし"})]}),A.isPin&&f.jsxs("g",{className:"pbtn",onClick:st=>{st.stopPropagation(),e.onTogglePin(A.id)},children:[f.jsx("title",{children:"ピン留め中(クリックでピン留めを外す)"}),f.jsx("rect",{x:oe+Fe-26,y:de+4,width:20,height:Qe-8,rx:4}),f.jsx(Fu,{on:A.pinned,x:oe+Fe-23,y:de+Qe/2-7})]})]},A.id)}),u.targets.map(A=>Yd(A,"target"))]})}),_&&f.jsx("div",{className:"panel-menu",style:{left:_.x,top:_.y},role:"menu",onPointerDown:A=>A.stopPropagation(),children:(()=>{const A=bp(e.hidden,_.col,_.id),de=me=>()=>{e.onHiddenChange(me),R(null)};return f.jsxs(f.Fragment,{children:[A?f.jsxs("button",{role:"menuitem",onClick:de(Xu(e.hidden,_.col,_.id)),children:[f.jsx(ga,{on:!0}),"表示"]}):f.jsxs("button",{role:"menuitem",onClick:de(new Set([...e.hidden,Ab(_.col,_.id)])),children:[f.jsx(ga,{on:!1}),"非表示"]}),f.jsxs("button",{role:"menuitem",disabled:e.hidden.size===0,onClick:de(new Set),children:[f.jsx(ga,{on:!0}),"すべて表示"]})]})})()})]})}const il=340,jp=220,_p=360,Tp=260,Dy="depshape.layout";function Wb(){try{const e=JSON.parse(localStorage.getItem(Dy)??"{}");return{tree:typeof e.tree=="number"&&e.tree>0?e.tree:void 0,side:typeof e.side=="number"&&e.side>0?e.side:il}}catch{return{side:il}}}function rs(e){try{localStorage.setItem(Dy,JSON.stringify(e))}catch{}}function is(e,t,n){const r=jr*(n?2:1);let i=e.side;n&&(i=Math.max(Tp,Math.min(i,t-r-jp-_p)));const o=t-r-(n?i:0);return{tree:e.tree===void 0?void 0:Math.max(jp,Math.min(e.tree,o-_p)),side:Math.max(Tp,i)}}function Vb(e,t){const n=e.tree===void 0?"minmax(0, 1fr)":`${e.tree}px`,r=e.tree===void 0?"minmax(0, 1.15fr)":"minmax(0, 1fr)";return[n,`${jr}px`,r,...t?[`${jr}px`,`${e.side}px`]:[]].join(" ")}const zy="depshape.reviewed:",Gb=e=>`${e.repoRoot}|${e.targetLabel}|${e.baseLabel}`,$p=e=>$n(zy+e,{}),Kb=(e,t)=>mn(zy+e,t);function qb(e){const t=new Map;for(const n of e){if(n.external||n.status==="unchanged")continue;let r=t.get(n.from);r||t.set(n.from,r=[]),r.push(`${n.status==="added"?"+":"-"} ${n.to}`)}return new Map([...t].map(([n,r])=>[n,Ji(r.sort())]))}function Yb(e,t){const n=new Set;for(const[r,i]of e)t[r]===i&&n.add(r);return n}function Xb(e,t,n){let r=!1;for(const i of t.keys())if(!(e!==""&&!i.startsWith(e+"/"))){if(!n.has(i))return!1;r=!0}return r}const Fy=e=>`import が ${e.added} 増え、${e.removed} 減った`,Qb=e=>e.metaKey||e.ctrlKey||e.shiftKey;function Zb(e,t){const n=new Map;for(const r of e.graph.edges){if(r.external||r.status==="unchanged")continue;const i=t.fileRep.get(r.from);if(!i)continue;let o=n.get(i);o||n.set(i,o={added:0,removed:0}),o[r.status]++}return n}const ja=e=>t=>{t.stopPropagation(),e()};function Jb(e){const{model:t,root:n,tree:r,open:i,mode:o,pins:s}=e,[l,a]=H.useState(null),u=H.useRef(void 0),c=H.useRef(null),d=H.useRef(null),[h,p]=H.useState(Wb),y=Zg(d),x=H.useRef(null),E=H.useMemo(()=>[...i].sort().join("|"),[i]),v=H.useMemo(()=>[...e.collapsed].sort().join("|"),[e.collapsed]),m=H.useMemo(()=>o==="all"?bb(n,i):Eb(t,n,r,i,e.collapsed),[t,n,r,o,E,v]),g=H.useMemo(()=>Zb(t,m),[t,m]),w=H.useMemo(()=>new Set(s),[s]),[C,S]=H.useState(()=>new Map),$=(V,ie)=>S(F=>new Map(F).set(V,ie)),[O,N]=H.useState(()=>new Map),k=(V,ie)=>N(F=>new Map(F).set(V,ie)),[L,_]=H.useState(()=>new Set),[R,M]=H.useState([]),[W,K]=H.useState({editingId:null,body:""}),[G,D]=H.useState(null),[U,b]=H.useState(null),Y=H.useRef(null),X=H.useMemo(()=>new Set(R),[R]),{comments:j,sidebarOpen:I,onSidebarOpen:T}=e,z=H.useMemo(()=>j.filter(V=>gi(t,r,V)!=="resolved"),[j,t,r]),q=H.useMemo(()=>{const V=new Map;for(const ie of z)for(const F of ie.targets)V.set(F,(V.get(F)??0)+1);return V},[z]),Q=V=>{const ie=F=>V===""||F.startsWith(V+"/");return z.filter(F=>F.targets.some(J=>{const se=_r(J);return ie(hn(se.kind==="item"?se.id:se.from.startsWith("i:")?se.to:se.from))})).length},re=()=>{Y.current?Y.current.focus():window.setTimeout(()=>{var V;return(V=Y.current)==null?void 0:V.focus()},0)},P=(V,ie)=>{if(V.length===0)return;let F=[];M(J=>(ie?F=V.every(ue=>J.includes(ue))?J.filter(ue=>!V.includes(ue)):[...J,...V.filter(ue=>!J.includes(ue))]:F=J.length===V.length&&V.every(ue=>J.includes(ue))?[]:V,F)),V.length&&T(!0)},te=()=>{M([]),K({editingId:null,body:""})},ce=H.useRef(e.active);ce.current=e.active,H.useEffect(()=>{const V=ie=>{!ce.current||document.activeElement instanceof HTMLTextAreaElement||document.activeElement instanceof HTMLInputElement||(ie.key==="Escape"&&M([]),ie.key==="c"&&!ie.metaKey&&!ie.ctrlKey&&!ie.altKey&&(ie.preventDefault(),T(!0),re()))};return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[]);const Ae=()=>{if(!W.body.trim()||R.length===0)return;const V=W.editingId?j.map(ie=>ie.id===W.editingId?{...ie,targets:R,body:W.body.trim()}:ie):[...j,{id:`${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}`,targets:R,body:W.body.trim(),createdAt:Date.now()}];e.onCommentsChange(V),te()},Se=V=>{const ie=V.targets.map(_r).flatMap(J=>J.kind==="link"?[J]:[]),F=ie.map(J=>J.from.startsWith("i:")?J.to:J.from);_(J=>{let se=new Set(J);for(const ue of ie){const Ie=ue.from.startsWith("i:");se=Xu(Xu(se,Ie?"I":"S",ue.from),Ie?"S":"T",ue.to)}return se}),e.onPin(F.filter(J=>!J.startsWith("c:"))),N(J=>{const se=new Map(J);for(const ue of F)ue.startsWith("f:")&&se.set(`c:${_e(ue.slice(2))}`,!0);return se}),S(J=>{const se=new Map(J);for(const ue of ie){if(ue.from.startsWith("i:")){const Ne=ue.from.slice(2),Le=Ne.startsWith("f:")?_e(Ne.slice(2)):Ne.slice(2);for(let dt=_e(Le);dt;dt=_e(dt))se.set(`i:g:${dt}`,!0);Ne.startsWith("f:")?se.set(`i:d:${Le}`,!0).set(`i:g:${Le}`,!0):Ne.startsWith("d:")?se.set(`i:d:${Le}`,!1).set(`i:g:${Le}`,!0):se.set(`i:g:${Le}`,!1);continue}if(ue.to.startsWith("x:"))continue;const Ie=ue.to.slice(2),xe=ue.to.startsWith("t:")?_e(Ie):Ie;for(let Ne=_e(xe);Ne;Ne=_e(Ne))se.set(`g:${Ne}`,!0);ue.to.startsWith("t:")?se.set(`d:${xe}`,!0).set(`g:${xe}`,!0):ue.to.startsWith("d:")?se.set(`d:${xe}`,!1).set(`g:${xe}`,!0):se.set(`g:${xe}`,!1)}return se}),M(V.targets)},be=V=>{Se(V),K({editingId:V.id,body:V.body}),re()},Fe=V=>{window.clearTimeout(u.current),a(V)},B=()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(null),80)},ne=V=>{var ie;return((ie=c.current)==null?void 0:ie.querySelector(`[data-id="${CSS.escape(V)}"]`))??null},oe=(V,ie)=>V.getBoundingClientRect().top-ie.getBoundingClientRect().top;H.useLayoutEffect(()=>{const V=c.current;if(!V||!x.current)return;const ie=ne(x.current.id);ie&&(V.scrollTop+=oe(ie,V)-x.current.top),x.current=null},[m]);const he=V=>{const ie=c.current,F=ne(V.id);ie&&F&&(x.current={id:V.id,top:oe(F,ie)}),o==="changes"&&V.kind==="open"&&!V.revealedOnly?e.onCollapseToggle(V.path):e.onToggle(V.path)},Z=V=>V?`${t.graph.repoRoot}/${V}`:t.graph.repoRoot,ee=V=>{switch(V.kind){case"file":return`${Z(V.path)}
|
|
91
|
-
${V.file.linesAfter??V.file.linesBefore} 行`;case"dir":return`${Z(V.path)}
|
|
92
|
-
${V.dir.stats.total} ファイル(クリックで開く)`;case"open":return`${Z(V.path)}
|
|
93
|
-
${V.dir.stats.total} ファイル(${V.collapsed?"クリックで開く":"クリックで閉じる"})`;case"rest":{const ie=[...(V.hiddenDirs??[]).map(F=>F.name+"/"),...(V.hiddenFiles??[]).map(F=>F.path.slice(F.path.lastIndexOf("/")+1))];return V.full?`${Z(V.path)} の中で変更のないもの(クリックで閉じる)`:[`${Z(V.path)} の中で変更のないもの(クリックで開く)`,...ie.slice(0,12),...ie.length>12?[`…ほか ${ie.length-12} 件`]:[]].join(`
|
|
94
|
-
`)}}},fe=V=>{var ft;const ie=V.kind==="open"?V.collapsed?"▸":"▾":V.kind==="rest"?V.full?"▾":"▸":V.kind==="dir"?"▸":"",F=V.kind==="file"||V.kind==="rest"?V.label:`${V.label}/`,J=V.kind==="open"&&!V.collapsed||V.kind==="rest"&&V.full?void 0:g.get(V.id),se=w.has(V.id),ue=q.get(Ri(V.id))??0,Ie=V.kind==="dir"||V.kind==="open"&&V.collapsed,xe=ue||(Ie?Q(V.path):0),Ne=V.kind==="file"&&e.reviewTargets.has(V.path),Le=V.kind==="file"?e.reviewed.has(V.path):V.kind==="dir"||V.kind==="open"?Xb(V.path,e.reviewTargets,e.reviewed):!1,dt=["trow",V.kind,V.status,(ft=V.file)!=null&&ft.isTest?"test":"",se?"pinned":"",Le?"reviewed":"",l===V.id?"hovered":"",X.has(Ri(V.id))?"picked":"",G!=null&&G.has(Ri(V.id))?"lit":""].filter(Boolean).join(" ");return f.jsxs("div",{className:dt,"data-id":V.id,title:ee(V),onMouseEnter:()=>V.kind==="rest"?B():Fe(V.id),onMouseLeave:B,onClick:sn=>{Qb(sn)?P([Ri(V.id)],!0):V.kind!=="file"&&he(V)},children:[f.jsx("span",{className:"ticon",children:ie}),f.jsx("span",{className:"tlabel",children:F}),V.dir&&f.jsx($l,{stats:V.dir.stats,unit:"ファイル"}),f.jsx("span",{className:"tspacer"}),J&&f.jsx(ki,{stats:J,title:Fy(J)}),xe>0&&f.jsx(_l,{n:xe,title:ue?"この行へのコメント":"この中のファイルへのコメント(未対応)"}),Ne?f.jsx("button",{className:`tbtn treview${Le?" on":""}`,onClick:ja(()=>e.onReviewed(V.path,!Le)),title:Le?"確認済み(クリックで外す)":"確認済みにする(このファイルの依存がまた変わると外れます)","aria-label":Le?"確認済みを外す":"確認済みにする","aria-pressed":Le,children:f.jsx(Bu,{size:13})}):Le?f.jsx("span",{className:"tcheck",title:"中の依存が変わったファイルをすべて確認済み",children:f.jsx(Bu,{size:13})}):f.jsx("span",{className:"tbtn-space"}),f.jsx("button",{className:"tbtn",onClick:ja(()=>{M([Ri(V.id)]),T(!0),re()}),title:"この行にコメントを書く(⌘ / Shift + クリックで複数選択)","aria-label":"コメントする",children:f.jsx(wi,{size:13})}),V.kind==="rest"?f.jsx("span",{className:"tbtn-space"}):f.jsx("button",{className:`tbtn tpin${se?" on":""}`,onClick:ja(()=>e.onTogglePin(V.id)),title:se?"パネルにピン留め中(クリックでピン留めを外す)":"パネルにピン留めする(表示し続ける)",children:f.jsx(Fu,{on:se})})]})},ye=V=>V.map(ie=>ie.kind==="open"?f.jsxs("div",{className:`tgroup ${ie.status}${ie.full?"":" pruned"}${ie.collapsed?" collapsed":""}`,children:[fe(ie),!ie.collapsed&&f.jsx("div",{className:"tchildren",children:ye(ie.children)})]},ie.id):ie.kind==="rest"&&ie.full?f.jsxs("div",{className:"tgroup rest-group",children:[fe(ie),f.jsx("div",{className:"tchildren",children:ye(ie.children)})]},ie.id):f.jsx("div",{children:fe(ie)},ie.id));return f.jsxs("div",{className:"map",children:[f.jsxs("div",{className:"map-toolbar",children:[f.jsxs("div",{className:"ds-seg",role:"group","aria-label":"表示範囲",children:[f.jsx("button",{className:o==="changes"?"on":"",onClick:()=>e.onModeChange("changes"),title:"変更したファイルと、その依存先だけを表示",children:"変更まわり"}),f.jsx("button",{className:o==="all"?"on":"",onClick:()=>e.onModeChange("all"),title:"リポジトリ全体のツリーを表示",children:"全体"})]}),o==="all"?f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"ds-btn",onClick:e.onExpandChanged,children:"変更箇所をすべて開く"}),f.jsx("button",{className:"ds-btn",onClick:e.onCollapseAll,children:"すべて閉じる"})]}):f.jsxs(f.Fragment,{children:[f.jsx("button",{className:"ds-btn",onClick:e.onExpandAll,disabled:e.collapsed.size===0,title:"閉じたフォルダをすべて開く",children:"すべて開く"}),f.jsx("button",{className:"ds-btn",onClick:e.onCollapseAll,disabled:i.size===0,title:"「ほか N ファイル」で開いたものを閉じる",children:"変更まわりだけに戻す"})]})]}),f.jsxs("div",{className:`map-body${I?" with-sidebar":""}`,ref:d,style:{gridTemplateColumns:Vb(y?is(h,y,I):h,I)},children:[f.jsx("div",{className:"map-scroll tree",ref:c,onMouseLeave:B,children:ye(m.roots)}),f.jsx(Eo,{title:"ドラッグでツリーとパネルの幅を変える(ダブルクリックで元に戻す)",start:()=>{var V;return((V=c.current)==null?void 0:V.getBoundingClientRect().width)??0},onDrag:(V,ie)=>p(F=>is({...F,tree:V+ie},y,I)),onEnd:()=>p(V=>(rs(V),V)),onReset:()=>p(V=>(rs({...V,tree:void 0}),{...V,tree:void 0}))}),f.jsx(Hb,{model:t,tree:r,pins:s,hovered:l&&!w.has(l)?l:null,onTogglePin:e.onTogglePin,onClearPins:e.onClearPins,selection:X,litKeys:G,commentCounts:q,onSelectKeys:P,onHoverKey:b,targetOpen:C,sourceOpen:O,onToggleSource:k,onToggleTarget:$,hidden:L,onHiddenChange:_}),I&&f.jsx(Eo,{title:"ドラッグでコメントの幅を変える(ダブルクリックで元に戻す)",start:()=>is(h,y,!0).side,onDrag:(V,ie)=>p(F=>is({...F,side:V-ie},y,!0)),onEnd:()=>p(V=>(rs(V),V)),onReset:()=>p(V=>(rs({...V,side:il}),{...V,side:il}))}),I&&f.jsx($b,{ref:Y,model:t,tree:r,comments:j,selection:R,draft:W,onDraft:K,onSave:Ae,onCancel:te,onRemoveTarget:V=>M(ie=>ie.filter(F=>F!==V)),onClose:()=>T(!1),onShow:Se,onEdit:be,onDelete:V=>{e.onCommentsChange(j.filter(ie=>ie.id!==V)),W.editingId===V&&te()},hoveredKeys:U,onHoverComment:V=>D(V?new Set(V):null)})]}),f.jsx("div",{className:"legend",children:f.jsxs("span",{className:"muted",children:["行にホバーすると右のパネルに依存先が出ます ・ ピンのアイコンでピン留めし、複数並べて比べられます ・ 矢印や箱のクリック(⌘ / Shift で複数)・行の吹き出しでコメント(c キーで入力欄へ)・ 「+n 依存」= 今回増えた import ・",o==="changes"?" 「ほか N ファイル」= 変更のない既存ファイル(クリックで展開)":" フォルダをクリックで開閉"]})})]})}function e1({data:e,active:t,onComments:n}){const r=e.repoRoot,[i,o]=ya(`depshape.expanded:${r}`),[s,l]=ya(`depshape.revealed:${r}`),[a,u]=ya(`depshape.collapsed:${r}`),c=`depshape.pins:${r}`,[d,h]=H.useState(()=>t1($n(c,[])));H.useEffect(()=>mn(c,d),[c,d]);const p=`depshape.comments:${r}|${e.targetLabel}|${e.baseLabel}`,[y,x]=H.useState(()=>dd(p)),[E,v]=H.useState(My("mapMode","changes")),[m,g]=H.useState(!1),w=H.useMemo(()=>fb(e),[e]),C=H.useMemo(()=>pb(w),[w]),S=Gb(e),[$,O]=H.useState(()=>$p(S));H.useEffect(()=>O($p(S)),[S]);const N=H.useMemo(()=>qb(e.edges),[e]),k=H.useMemo(()=>Yb(N,$),[N,$]),L=H.useCallback((b,Y)=>{const X=N.get(b);X&&O(j=>{const I={...j};return Y?I[b]=X:delete I[b],Kb(S,I),I})},[N,S]),_=H.useCallback(b=>{x(b),fd(p,b)},[p]);H.useEffect(()=>{const b=y.filter(Y=>gi(w,C.byPath,Y)!=="resolved").length;n({open:b,prompt:()=>Ay(w,C.byPath,y,{header:!1}).text})},[y,w,C,n]);const R=H.useCallback(b=>u(Y=>{const X=new Set(Y);return X.has(b)?X.delete(b):X.add(b),X}),[u]),M=H.useCallback(b=>h(Y=>[...Y,...b.filter(X=>!Y.includes(X))]),[]),W=H.useCallback(b=>h(Y=>Y.includes(b)?Y.filter(X=>X!==b):[...Y,b]),[]),K=H.useCallback(b=>{const Y=X=>{const j=new Set(X);if(j.has(b))for(const I of[...j])(I===b||I.startsWith(b+"/"))&&j.delete(I);else j.add(b);return j};E==="all"?o(Y):l(Y)},[E,o,l]),G=n1(w.graph.files),D=y.filter(b=>gi(w,C.byPath,b)!=="resolved").length,U=r1(w.graph.edges);return f.jsxs("div",{className:"app",children:[f.jsxs(md,{children:[f.jsxs(gd,{children:[f.jsx(hi,{children:"ファイル"}),f.jsx($l,{stats:G,unit:"ファイル",showZero:!0}),f.jsx(yd,{}),f.jsx(hi,{children:"依存"}),f.jsx(ki,{stats:U,title:Fy(U),showZero:!0})]}),f.jsx(xd,{}),f.jsx(vd,{done:k.size,total:N.size,title:"確認済みにした、依存が変わったファイル(依存がまた変わると外れます)"}),f.jsxs("button",{className:`ds-btn${m?" on":""}`,onClick:()=>g(!m),title:"コメントのサイドバーを開閉",children:[f.jsx(wi,{size:13}),"コメント ",y.length,y.length>0&&f.jsxs("span",{className:"muted",children:["(未対応 ",D,")"]})]})]}),f.jsx("main",{children:f.jsx(Jb,{model:w,root:C.root,tree:C.byPath,mode:E,onModeChange:b=>{v(b),Py("mapMode",b)},open:E==="all"?i:s,onToggle:K,collapsed:a,onCollapseToggle:R,onExpandAll:()=>u(new Set),onExpandChanged:()=>{const b=new Set(i);for(const Y of w.changedDirs)for(const X of Ss(Y))b.add(X);o(b)},onCollapseAll:()=>E==="all"?o(new Set):l(new Set),pins:d,onTogglePin:W,onClearPins:()=>h([]),onPin:M,reviewTargets:N,reviewed:k,onReviewed:L,comments:y,onCommentsChange:_,sidebarOpen:m,onSidebarOpen:g,active:t})})]})}const t1=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[];function n1(e){const t={added:0,modified:0,removed:0};for(const n of e)n.status!=="unchanged"&&t[n.status]++;return t}function r1(e){const t={added:0,removed:0};for(const n of e)!n.external&&n.status!=="unchanged"&&t[n.status]++;return t}const i1={id:"dep",title:"依存",description:"コードの依存関係(depshape): フォルダ・ファイルの import の変化",icon:Wk,View:e1,badge:e=>e.files.filter(t=>t.status!=="unchanged").length||void 0},By=(e,t)=>`path=${encodeURIComponent(e)}&side=${t}`;async function Uy(e,t){const n=await fetch(`/api/module/file/content?${By(e,t)}`);if(!n.ok)throw new Error(await n.text());return(await n.json()).lines}const Hy=(e,t,n)=>`/api/module/file/raw?${By(e,t)}&v=${n}`,o1=/\.(png|jpe?g|gif|webp|avif|bmp|ico|svg)$/i,Qu=e=>o1.test(e),s1=e=>/\.(md|markdown|mdx)$/i.test(e);function l1(e){const t={name:"",path:"",children:[]};for(const n of e){const r=n.path.split("/");let i=t;r.forEach((o,s)=>{const l=s===r.length-1,a=r.slice(0,s+1).join("/");let u=i.children.find(c=>c.name===o&&!c.file==!l);u||(u={name:o,path:a,children:[],...l?{file:n}:{}},i.children.push(u)),i=u})}return Vy(Wy(t))}function Wy(e){let t={...e,children:e.children.map(Wy)};for(;t.path!==""&&!t.file&&t.children.length===1&&!t.children[0].file;){const n=t.children[0];t={...n,name:`${t.name}/${n.name}`}}return t}function Vy(e){const t=e.children.map(Vy).sort((n,r)=>!n.file!=!r.file?n.file?1:-1:n.name.localeCompare(r.name));return{...e,children:t}}function Gy(e){return e.file?[e.file]:e.children.flatMap(Gy)}function Ky(e){return e.file?[]:[...e.path?[e.path]:[],...e.children.flatMap(Ky)]}function qy(e,t){const n=t.trim().toLowerCase();if(!n)return e;if(e.file)return e.file.path.toLowerCase().includes(n)||(e.file.oldPath??"").toLowerCase().includes(n)?e:null;const r=e.children.map(i=>qy(i,n)).filter(i=>i!==null);return r.length||e.path===""?{...e,children:r}:null}const _a=(e,t)=>t===0?e+1:e,Ta=(e,t)=>t===0?e:e+t-1,a1=e=>e.status!=="added"&&e.status!=="removed"&&!e.binary&&!e.large&&e.chunks.length>0;function Al(e,t){if(!a1(e))return[];const n=e.chunks;return Array.from({length:n.length+1},(r,i)=>{const o=n[i-1],s=n[i],l=o?Ta(o.newStart,o.newLines)+1:1,a=s?_a(s.newStart,s.newLines)-1:t,u=o?Ta(o.oldStart,o.oldLines)-Ta(o.newStart,o.newLines):_a(s.oldStart,s.oldLines)-_a(s.newStart,s.newLines);return{index:i,from:l,to:a,delta:u}})}const pr=20,Ip=(e,t)=>e.to===void 0?void 0:Math.max(0,e.to-e.from+1-((t==null?void 0:t.top)??0)-((t==null?void 0:t.bottom)??0));function u1(e,t,n){const r=[],i=Al(e,t==null?void 0:t.length),o=(l,a,u)=>{if(t)for(let c=a;c<=u;c++)t[c-1]!==void 0&&r.push({kind:"line",opened:!0,line:{type:"normal",content:t[c-1],oldLine:c+l.delta,newLine:c}})};e.chunks.forEach((l,a)=>{const u=i[a];if(u){const c=t?n[a]:void 0,d=Ip(u,c),h=Math.min((c==null?void 0:c.top)??0,u.to-u.from+1);o(u,u.from,u.from+h-1),(d>0||a===0)&&r.push({kind:"gap",gap:u,hidden:d,chunk:l}),o(u,u.from+h+d,u.to)}else r.push({kind:"gap",gap:{index:a,from:1,to:0,delta:0},hidden:0,chunk:l});for(const c of l.lines)r.push({kind:"line",line:c})});const s=i[e.chunks.length];if(s){const l=t?n[s.index]:void 0,a=Ip(s,l);t&&o(s,s.from,s.from+((l==null?void 0:l.top)??0)-1),(a===void 0||a>0)&&r.push({kind:"gap",gap:s,hidden:a})}return r}function c1(e,t,n,r){const i=(t.to??r)-t.from+1,o=e[t.index]??{top:0,bottom:0},s=Math.max(0,i-o.top-o.bottom),l=n==="all"?{top:i-o.bottom,bottom:o.bottom}:n==="down"?{...o,top:o.top+Math.min(pr,s)}:{...o,bottom:o.bottom+Math.min(pr,s)};return{...e,[t.index]:l}}function d1(e,t,n,r,i){let o=n;for(const s of Al(e,t)){const l=s.to??t;if(i<s.from||r>l)continue;const a=o[s.index]??{top:0,bottom:0},u=Math.min(l-s.from+1,Math.max(a.top,Math.min(i,l)-s.from+1+3));u!==a.top&&(o={...o,[s.index]:{...a,top:u}})}return o}function Zu(e,t){for(const n of Al(e)){const r=t-n.delta;if(r>=n.from&&(n.to===void 0||r<=n.to))return r}}function Yy(e){const t=[];let n=0;for(;n<e.length;){const r=e[n];if(r.type==="normal"){t.push({old:r,new:r}),n++;continue}const i=[];for(;n<e.length&&e[n].type==="delete";)i.push(e[n++]);const o=[];for(;n<e.length&&e[n].type==="add";)o.push(e[n++]);for(let s=0;s<Math.max(i.length,o.length);s++)t.push({old:i[s],new:o[s]})}return t}const Lp=500,Ap=e=>e.match(/[\p{L}\p{N}_]+|\s+|[^\p{L}\p{N}_\s]/gu)??[];function f1(e,t){if(!e.trim()||!t.trim()||e===t||e.length>Lp||t.length>Lp)return;const n=Ap(e),r=Ap(t),i=r.length+1,o=new Uint16Array((n.length+1)*i);for(let d=n.length-1;d>=0;d--)for(let h=r.length-1;h>=0;h--)o[d*i+h]=n[d]===r[h]?o[(d+1)*i+h+1]+1:Math.max(o[(d+1)*i+h],o[d*i+h+1]);const s=new Array(n.length).fill(!1),l=new Array(r.length).fill(!1);for(let d=0,h=0;d<n.length&&h<r.length;)n[d]===r[h]?(s[d++]=!0,l[h++]=!0):o[(d+1)*i+h]>=o[d*i+h+1]?d++:h++;const a=d=>d.trim().length,u=n.reduce((d,h,p)=>d+(s[p]?a(h):0),0),c=n.reduce((d,h)=>d+a(h),0)+r.reduce((d,h)=>d+a(h),0);if(!(c===0||2*u/c<.4))return{old:Rp(n,s),new:Rp(r,l)}}function Rp(e,t){t=t.map((i,o)=>i&&!(o>0&&o<e.length-1&&!e[o].trim()&&!t[o-1]&&!t[o+1]));const n=[];let r=0;return e.forEach((i,o)=>{const s=r+i.length;if(!t[o]){const l=n[n.length-1];l&&l[1]===r?l[1]=s:n.push([r,s])}r=s}),n}function p1(e){var n,r;const t=new Map;for(const i of Yy(e)){if(((n=i.old)==null?void 0:n.type)!=="delete"||((r=i.new)==null?void 0:r.type)!=="add")continue;const o=f1(i.old.content,i.new.content);o&&(t.set(`old:${i.old.oldLine}`,o.old),t.set(`new:${i.new.newLine}`,o.new))}return t}function h1(e,t){if(!t.length)return e;const n=[];let r=0;for(const i of e){const o=r+i.text.length;let s=r;for(const[l,a]of t){if(a<=s||l>=o)continue;l>s&&n.push({...i,text:i.text.slice(s-r,l-r)});const u=Math.min(a,o);n.push({...i,text:i.text.slice(Math.max(l,s)-r,u-r),mark:!0}),s=u}s<o&&n.push({...i,text:i.text.slice(s-r)}),r=o}return n}function m1(e){return Ji([e.status,e.oldPath??"",e.modeChange??"",e.binary?"binary":"",e.chunks.map(t=>t.lines.filter(n=>n.type!=="normal").map(n=>`${n.type==="add"?"+":"-"}${n.content}`))])}const Xy=e=>e.chunks.reduce((t,n)=>t+n.lines.length,0);function g1(e){const t={added:0,modified:0,removed:0};for(const n of e)t[n.status==="renamed"?"modified":n.status]++;return t}function y1(e){return e.reduce((t,n)=>({added:t.added+n.additions,removed:t.removed+n.deletions}),{added:0,removed:0})}function Sd(e,t,n){const r=new Map;n&&t==="new"&&n.forEach((i,o)=>r.set(o+1,i));for(const i of e.chunks)for(const o of i.lines)t==="old"&&o.type!=="add"&&r.set(o.oldLine,o.content),t==="new"&&o.type!=="delete"&&r.set(o.newLine,o.content);if(n&&t==="old"){const i=Math.max(0,...e.chunks.map(o=>o.oldStart+o.oldLines))+n.length;for(let o=1;o<=i;o++){if(r.has(o))continue;const s=Zu(e,o);s!==void 0&&n[s-1]!==void 0&&r.set(o,n[s-1])}}return r}const Qy=e=>(e.endLine??e.line)-e.line+1;function So(e,t,n){if(!e)return{state:"resolved"};const r=Sd(e,t.side,n),i=t.code.split(`
|
|
95
|
-
`),o=Qy(t),s=u=>i.every((c,d)=>r.get(u+d)===c),l=(u,c)=>({state:c,line:u,...o>1?{endLine:u+o-1}:{}});if(s(t.line))return l(t.line,"open");let a;for(const[u,c]of r)c===i[0]&&s(u)&&(a===void 0||Math.abs(u-t.line)<Math.abs(a-t.line))&&(a=u);return a!==void 0?l(a,"open"):r.has(t.line)?l(t.line,"updated"):{state:"resolved"}}function Op(e,t){const n=Sd(e,t.side);for(let r=t.line;r<=(t.endLine??t.line);r++)if(!n.has(r))return!1;return!0}const wn=(e,t)=>e.files.find(n=>n.path===t),x1=(e,t,n)=>So(wn(e,t.path),t,n).state;function v1(e,t){return{id:ry(),path:e.path,side:e.side,line:e.line,...e.endLine&&e.endLine!==e.line?{endLine:e.endLine}:{},code:e.code,body:t,createdAt:Date.now()}}const Ju=(e,t,n,r)=>`${e}:L${n}${r&&r!==n?`-L${r}`:""}${t==="old"?" (old)":""}`,w1={old:"変更前",new:"変更後"},ol=(e,t,n)=>`${w1[e]}の ${n&&n!==t?`${t}〜${n}`:t} 行目`,$a=(e,t)=>{const n=t.split(`
|
|
96
|
-
`);return n.length===1?[` ${e}: ${t.trim()}`]:[` ${e}:`," ```",...n.map(r=>` ${r}`)," ```"]};function Zy(e,t,n={}){const r=t.map(s=>{var l;return{c:s,at:So(wn(e,s.path),s,(l=n.contents)==null?void 0:l.get(s.path))}}),i=n.includeResolved?r:r.filter(s=>s.at.state!=="resolved"),o=n.header===!1?[]:[...Tl(e),"対象: ファイルの差分(fileshape)",""];return i.forEach(({c:s,at:l},a)=>{var d;const u=l.line??s.line,c=l.line!==void 0?l.endLine:s.endLine;if(o.push(`${a+1}. ${Ju(s.path,s.side,u,c)}(${ol(s.side,u,c)})${l.state==="resolved"?"(解消済み?)":""}`),l.state==="updated"){const h=Sd(wn(e,s.path),s.side,(d=n.contents)==null?void 0:d.get(s.path)),p=Array.from({length:Qy(s)},(y,x)=>h.get(u+x)??"").join(`
|
|
97
|
-
`);o.push(...$a("コード",p),...$a("コメントしたときは",s.code))}else o.push(...$a("コード",s.code));o.push(` コメント: ${s.body.trim().replace(/\n/g,`
|
|
98
|
-
`)}`,"")}),{text:o.join(`
|
|
99
|
-
`).trimEnd()+`
|
|
100
|
-
`,included:i.length,skipped:t.length-i.length}}const Jy="fileshape.comments:",k1=e=>dd(Jy+e),b1=(e,t)=>fd(Jy+e,t),ex=H.createContext(null),Cd=()=>H.useContext(ex),Pr=(e,t)=>`${e}:${t}`;function E1({comments:e,composing:t}){const n=Cd();return f.jsxs("div",{className:"fs-thread",children:[e.map(r=>n.editing===r.id?f.jsx(ec,{initial:r.body,label:ol(r.side,r.line,r.endLine),onSave:i=>n.update(r.id,i),onCancel:()=>n.edit(null)},r.id):f.jsx(Nd,{c:r},r.id)),t&&f.jsx(ec,{initial:"",label:ol(t.side,t.line,t.endLine),onSave:r=>n.add(t,r),onCancel:()=>n.compose(null)})]})}function Nd({c:e,showWhere:t}){const n=Cd(),r=So(wn(n.run,e.path),e,n.contents.get(e.path));if(t&&n.editing===e.id)return f.jsx(ec,{initial:e.body,label:Ju(e.path,e.side,e.line,e.endLine),onSave:o=>n.update(e.id,o),onCancel:()=>n.edit(null)});const i=e.endLine!==void 0&&e.endLine!==e.line;return f.jsx(pd,{body:e.body,state:r.state,top:t?f.jsxs("span",{className:"fs-comment-where",children:[Ju(e.path,e.side,e.line,e.endLine)," ",f.jsx("code",{children:e.code.split(`
|
|
101
|
-
`)[0].trim()||"(空行)"}),i&&f.jsx("span",{className:"ds-muted",children:" ほか"})]}):i?f.jsx("span",{className:"ds-muted",children:ol(e.side,r.line??e.line,r.line!==void 0?r.endLine:e.endLine)}):void 0,stateTitle:r.state==="updated"?`コメントしたときは: ${e.code.trim()}`:r.state==="resolved"?"この行は差分からなくなりました":void 0,onCopy:()=>Io(Zy(n.run,[e],{includeResolved:!0,contents:n.contents}).text),onEdit:()=>n.edit(e.id),onDelete:()=>n.remove(e.id)})}function ec({initial:e,label:t,onSave:n,onCancel:r}){const[i,o]=H.useState(e);return f.jsx(hd,{autoFocus:!0,editing:e!=="",top:f.jsxs("span",{className:"ds-muted",children:[t,e===""&&"(行番号を Shift+クリックかドラッグすると範囲になります)"]}),value:i,placeholder:"気になる点や直してほしいこと",onChange:o,onSave:()=>i.trim()&&n(i.trim()),onCancel:r})}const S1=e=>Math.min(e.a,e.b),C1=e=>Math.max(e.a,e.b),Oi=(e,t)=>e==="old"?t.type!=="add"?t.oldLine:void 0:t.type!=="delete"?t.newLine:void 0,N1=H.memo(function({file:t,mode:n,rows:r,tokens:i,byLine:o,onExpand:s}){var L;const l=Cd(),a=((L=l.composing)==null?void 0:L.path)===t.path?l.composing:null,u=H.useMemo(()=>{const _=new Map;for(const R of t.chunks)for(const[M,W]of p1(R.lines))_.set(M,W);return _},[t]),c=H.useMemo(()=>{const _={old:new Map,new:new Map};for(const R of r)if(R.kind==="line")for(const M of["old","new"]){const W=Oi(M,R.line);W!==void 0&&_[M].set(W,R.line.content)}return _},[r]),d=(_,R,M)=>{const W=Math.min(R,M),K=Math.max(R,M),G=[];let D=W;for(let U=W;U<=K;U++){const b=c[_].get(U);if(b===void 0)break;G.push(b),D=U}return{path:t.path,side:_,line:W,...D>W?{endLine:D}:{},code:G.join(`
|
|
102
|
-
`)}},[h,p]=H.useState(null),y=H.useRef(null);y.current=h;const x=H.useRef(()=>{});x.current=()=>{const _=y.current;p(null),_&&l.compose(d(_.side,_.a,_.b))};const E=h!==null;H.useEffect(()=>{if(!E)return;const _=()=>x.current();return window.addEventListener("mouseup",_),()=>window.removeEventListener("mouseup",_)},[E]);const v=h??(a?{side:a.side,a:a.line,b:a.endLine??a.line}:null),m=(_,R)=>!!v&&R!==void 0&&v.side===_&&R>=S1(v)&&R<=C1(v),g=(_,R)=>{const M=R?Oi(_,R):void 0;return!R||M===void 0?f.jsx("td",{className:"fs-num empty"}):f.jsx("td",{className:`fs-num${m(_,M)?" selected":""}`,onMouseDown:W=>{if(W.button===0){if(W.preventDefault(),W.shiftKey&&a&&a.side===_){l.compose(d(_,a.line,M));return}p({side:_,a:M,b:M})}},onMouseEnter:()=>{y.current&&y.current.side===_&&p({...y.current,b:M})},title:`${_==="old"?"変更前":"変更後"}の ${M} 行目にコメントする(Shift+クリックかドラッグで範囲)`,children:M})},w=(_,R)=>{const M=Oi(_,R),W=(R.type==="normal"?(i==null?void 0:i.get(Pr("new",R.newLine)))??(i==null?void 0:i.get(Pr("old",R.oldLine))):i==null?void 0:i.get(Pr(_,M)))??[{types:"",text:R.content}];return h1(W,u.get(Pr(_,M))??[]).map((G,D)=>{const U=[G.types?`token ${G.types}`:"",G.mark?`fs-word ${_}`:""].filter(Boolean).join(" ");return U?f.jsx("span",{className:U,children:G.text},D):f.jsx(H.Fragment,{children:G.text},D)})},C=(_,R)=>{const M=[...new Set(_.flatMap(([G,D])=>o.get(Pr(G,D))??[]))],W=a?a.endLine??a.line:void 0,K=a&&_.some(([G,D])=>a.side===G&&W===D)?a:void 0;return!M.length&&!K?null:f.jsx("tr",{className:"fs-thread-row",children:f.jsx("td",{colSpan:R,children:f.jsx(E1,{comments:M,composing:K})})})},S=(_,R,M)=>{const{gap:W,hidden:K,chunk:G}=_,D=W.index>0,U=!!G,b=(X,j,I)=>f.jsx("button",{className:"fs-expand",onClick:()=>s(W,X),title:I,"aria-label":I,children:j}),Y=K===void 0||K>0;return f.jsx("tr",{className:"fs-hunk",children:f.jsxs("td",{colSpan:R,children:[f.jsx("span",{className:"fs-expanders",children:Y&&(K!==void 0&&K<=pr&&D&&U?b("all","↕",`${K} 行をすべて表示`):[U&&b("up","↑",`上の ${Math.min(pr,K??pr)} 行を表示`),D&&b("down","↓",K===void 0?"下の行を表示":`下の ${Math.min(pr,K)} 行を表示`),K!==void 0&&K>pr&&b("all","⇕",`${K} 行をすべて表示`)].filter(Boolean).map((X,j)=>f.jsx(H.Fragment,{children:X},j)))}),G?f.jsxs(f.Fragment,{children:["@@ -",G.oldStart,",",G.oldLines," +",G.newStart,",",G.newLines," @@",G.section&&f.jsxs("span",{className:"fs-hunk-section",children:[" ",G.section]})]}):f.jsx("span",{children:K===void 0?"ファイルの残りを表示":`残り ${K} 行`})]})},`g${M}`)};if(n==="unified")return f.jsxs("table",{className:"fs-table unified",children:[f.jsxs("colgroup",{children:[f.jsx("col",{className:"fs-col-num"}),f.jsx("col",{className:"fs-col-num"}),f.jsx("col",{className:"fs-col-sign"}),f.jsx("col",{})]}),f.jsx("tbody",{children:r.map((_,R)=>{if(_.kind==="gap")return S(_,4,R);const M=_.line,W=M.type==="delete"?"old":"new",K=M.type==="normal"?[["old",M.oldLine],["new",M.newLine]]:[[W,Oi(W,M)]],G=K.some(([D,U])=>m(D,U));return f.jsxs(H.Fragment,{children:[f.jsxs("tr",{className:`fs-line ${M.type}${_.opened?" opened":""}${G?" selected":""}`,children:[g("old",M.type==="add"?void 0:M),g("new",M.type==="delete"?void 0:M),f.jsx("td",{className:"fs-sign",children:M.type==="add"?"+":M.type==="delete"?"-":" "}),f.jsx("td",{className:"fs-code",children:w(W,M)})]}),C(K,4)]},R)})})]});const $=[];let O=[],N=new Set;const k=()=>{Yy(O).forEach((_,R)=>{var K,G;const M=[];_.old&&M.push(["old",_.old.oldLine]),_.new&&M.push(["new",_.new.newLine]);const W=(D,U)=>`${D?D.type:"empty"}${D&&m(U,Oi(U,D))?" selected":""}`;$.push(f.jsxs(H.Fragment,{children:[f.jsxs("tr",{className:`fs-line${_.old&&N.has(_.old)?" opened":""}`,children:[g("old",_.old),f.jsx("td",{className:`fs-sign ${W(_.old,"old")}`,children:((K=_.old)==null?void 0:K.type)==="delete"?"-":" "}),f.jsx("td",{className:`fs-code ${W(_.old,"old")}`,children:_.old&&w("old",_.old)}),g("new",_.new),f.jsx("td",{className:`fs-sign ${W(_.new,"new")}`,children:((G=_.new)==null?void 0:G.type)==="add"?"+":" "}),f.jsx("td",{className:`fs-code ${W(_.new,"new")}`,children:_.new&&w("new",_.new)})]}),C(M,6)]},`l${$.length}-${R}`))}),O=[],N=new Set};return r.forEach((_,R)=>{_.kind==="gap"?(k(),$.push(S(_,6,R))):(O.push(_.line),_.opened&&N.add(_.line))}),k(),f.jsxs("table",{className:"fs-table split",children:[f.jsxs("colgroup",{children:[f.jsx("col",{className:"fs-col-num"}),f.jsx("col",{className:"fs-col-sign"}),f.jsx("col",{className:"fs-col-half"}),f.jsx("col",{className:"fs-col-num"}),f.jsx("col",{className:"fs-col-sign"}),f.jsx("col",{className:"fs-col-half"})]}),f.jsx("tbody",{children:$})]})});var tx={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
103
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
104
|
-
*
|
|
105
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
106
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
107
|
-
* @namespace
|
|
108
|
-
* @public
|
|
109
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(g){return g instanceof a?new a(g.type,m(g.content),g.alias):Array.isArray(g)?g.map(m):g.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(g,w){w=w||{};var C,S;switch(l.util.type(g)){case"Object":if(S=l.util.objId(g),w[S])return w[S];C={},w[S]=C;for(var $ in g)g.hasOwnProperty($)&&(C[$]=m(g[$],w));return C;case"Array":return S=l.util.objId(g),w[S]?w[S]:(C=[],w[S]=C,g.forEach(function(O,N){C[N]=m(O,w)}),C);default:return g}},getLanguage:function(m){for(;m;){var g=i.exec(m.className);if(g)return g[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,g){m.className=m.className.replace(RegExp(i,"gi"),""),m.classList.add("language-"+g)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(C){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(m){var g=document.getElementsByTagName("script");for(var w in g)if(g[w].src==m)return g[w]}return null}},isActive:function(m,g,w){for(var C="no-"+g;m;){var S=m.classList;if(S.contains(g))return!0;if(S.contains(C))return!1;m=m.parentElement}return!!w}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(m,g){var w=l.util.clone(l.languages[m]);for(var C in g)w[C]=g[C];return w},insertBefore:function(m,g,w,C){C=C||l.languages;var S=C[m],$={};for(var O in S)if(S.hasOwnProperty(O)){if(O==g)for(var N in w)w.hasOwnProperty(N)&&($[N]=w[N]);w.hasOwnProperty(O)||($[O]=S[O])}var k=C[m];return C[m]=$,l.languages.DFS(l.languages,function(L,_){_===k&&L!=m&&(this[L]=$)}),$},DFS:function m(g,w,C,S){S=S||{};var $=l.util.objId;for(var O in g)if(g.hasOwnProperty(O)){w.call(g,O,g[O],C||O);var N=g[O],k=l.util.type(N);k==="Object"&&!S[$(N)]?(S[$(N)]=!0,m(N,w,null,S)):k==="Array"&&!S[$(N)]&&(S[$(N)]=!0,m(N,w,O,S))}}},plugins:{},highlightAll:function(m,g){l.highlightAllUnder(document,m,g)},highlightAllUnder:function(m,g,w){var C={callback:w,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),l.hooks.run("before-all-elements-highlight",C);for(var S=0,$;$=C.elements[S++];)l.highlightElement($,g===!0,C.callback)},highlightElement:function(m,g,w){var C=l.util.getLanguage(m),S=l.languages[C];l.util.setLanguage(m,C);var $=m.parentElement;$&&$.nodeName.toLowerCase()==="pre"&&l.util.setLanguage($,C);var O=m.textContent,N={element:m,language:C,grammar:S,code:O};function k(_){N.highlightedCode=_,l.hooks.run("before-insert",N),N.element.innerHTML=N.highlightedCode,l.hooks.run("after-highlight",N),l.hooks.run("complete",N),w&&w.call(N.element)}if(l.hooks.run("before-sanity-check",N),$=N.element.parentElement,$&&$.nodeName.toLowerCase()==="pre"&&!$.hasAttribute("tabindex")&&$.setAttribute("tabindex","0"),!N.code){l.hooks.run("complete",N),w&&w.call(N.element);return}if(l.hooks.run("before-highlight",N),!N.grammar){k(l.util.encode(N.code));return}if(g&&r.Worker){var L=new Worker(l.filename);L.onmessage=function(_){k(_.data)},L.postMessage(JSON.stringify({language:N.language,code:N.code,immediateClose:!0}))}else k(l.highlight(N.code,N.grammar,N.language))},highlight:function(m,g,w){var C={code:m,grammar:g,language:w};if(l.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=l.tokenize(C.code,C.grammar),l.hooks.run("after-tokenize",C),a.stringify(l.util.encode(C.tokens),C.language)},tokenize:function(m,g){var w=g.rest;if(w){for(var C in w)g[C]=w[C];delete g.rest}var S=new d;return h(S,S.head,m),c(m,S,g,S.head,0),y(S)},hooks:{all:{},add:function(m,g){var w=l.hooks.all;w[m]=w[m]||[],w[m].push(g)},run:function(m,g){var w=l.hooks.all[m];if(!(!w||!w.length))for(var C=0,S;S=w[C++];)S(g)}},Token:a};r.Prism=l;function a(m,g,w,C){this.type=m,this.content=g,this.alias=w,this.length=(C||"").length|0}a.stringify=function m(g,w){if(typeof g=="string")return g;if(Array.isArray(g)){var C="";return g.forEach(function(k){C+=m(k,w)}),C}var S={type:g.type,content:m(g.content,w),tag:"span",classes:["token",g.type],attributes:{},language:w},$=g.alias;$&&(Array.isArray($)?Array.prototype.push.apply(S.classes,$):S.classes.push($)),l.hooks.run("wrap",S);var O="";for(var N in S.attributes)O+=" "+N+'="'+(S.attributes[N]||"").replace(/"/g,""")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+O+">"+S.content+"</"+S.tag+">"};function u(m,g,w,C){m.lastIndex=g;var S=m.exec(w);if(S&&C&&S[1]){var $=S[1].length;S.index+=$,S[0]=S[0].slice($)}return S}function c(m,g,w,C,S,$){for(var O in w)if(!(!w.hasOwnProperty(O)||!w[O])){var N=w[O];N=Array.isArray(N)?N:[N];for(var k=0;k<N.length;++k){if($&&$.cause==O+","+k)return;var L=N[k],_=L.inside,R=!!L.lookbehind,M=!!L.greedy,W=L.alias;if(M&&!L.pattern.global){var K=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,K+"g")}for(var G=L.pattern||L,D=C.next,U=S;D!==g.tail&&!($&&U>=$.reach);U+=D.value.length,D=D.next){var b=D.value;if(g.length>m.length)return;if(!(b instanceof a)){var Y=1,X;if(M){if(X=u(G,U,m,R),!X||X.index>=m.length)break;var z=X.index,j=X.index+X[0].length,I=U;for(I+=D.value.length;z>=I;)D=D.next,I+=D.value.length;if(I-=D.value.length,U=I,D.value instanceof a)continue;for(var T=D;T!==g.tail&&(I<j||typeof T.value=="string");T=T.next)Y++,I+=T.value.length;Y--,b=m.slice(U,I),X.index-=U}else if(X=u(G,0,b,R),!X)continue;var z=X.index,q=X[0],Q=b.slice(0,z),re=b.slice(z+q.length),P=U+b.length;$&&P>$.reach&&($.reach=P);var te=D.prev;Q&&(te=h(g,te,Q),U+=Q.length),p(g,te,Y);var ce=new a(O,_?l.tokenize(q,_):q,W,q);if(D=h(g,te,ce),re&&h(g,D,re),Y>1){var Ae={cause:O+","+k,reach:P};c(m,g,w,D.prev,U,Ae),$&&Ae.reach>$.reach&&($.reach=Ae.reach)}}}}}}function d(){var m={value:null,prev:null,next:null},g={value:null,prev:m,next:null};m.next=g,this.head=m,this.tail=g,this.length=0}function h(m,g,w){var C=g.next,S={value:w,prev:g,next:C};return g.next=S,C.prev=S,m.length++,S}function p(m,g,w){for(var C=g.next,S=0;S<w&&C!==m.tail;S++)C=C.next;g.next=C,C.prev=g,m.length-=S}function y(m){for(var g=[],w=m.head.next;w!==m.tail;)g.push(w.value),w=w.next;return g}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(m){var g=JSON.parse(m.data),w=g.language,C=g.code,S=g.immediateClose;r.postMessage(l.highlight(C,l.languages[w],w)),S&&r.close()},!1)),l;var x=l.util.currentScript();x&&(l.filename=x.src,x.hasAttribute("data-manual")&&(l.manual=!0));function E(){l.manual||l.highlightAll()}if(!l.manual){var v=document.readyState;v==="loading"||v==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return l}(t);e.exports&&(e.exports=n),typeof Qd<"u"&&(Qd.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};l["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(x,E){return"✖ Error "+x+" while fetching file: "+E},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",u="loaded",c="failed",d="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+a+'"])';function h(x,E,v){var m=new XMLHttpRequest;m.open("GET",x,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?E(m.responseText):m.status>=400?v(i(m.status,m.statusText)):v(o))},m.send(null)}function p(x){var E=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(E){var v=Number(E[1]),m=E[2],g=E[3];return m?g?[v,Number(g)]:[v,void 0]:[v,v]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+d}),n.hooks.add("before-sanity-check",function(x){var E=x.element;if(E.matches(d)){x.code="",E.setAttribute(l,a);var v=E.appendChild(document.createElement("CODE"));v.textContent=r;var m=E.getAttribute("data-src"),g=x.language;if(g==="none"){var w=(/\.(\w+)$/.exec(m)||[,"none"])[1];g=s[w]||w}n.util.setLanguage(v,g),n.util.setLanguage(E,g);var C=n.plugins.autoloader;C&&C.loadLanguages(g),h(m,function(S){E.setAttribute(l,u);var $=p(E.getAttribute("data-range"));if($){var O=S.split(/\r\n?|\n/g),N=$[0],k=$[1]==null?O.length:$[1];N<0&&(N+=O.length),N=Math.max(0,Math.min(N-1,O.length)),k<0&&(k+=O.length),k=Math.max(0,Math.min(k,O.length)),S=O.slice(N,k).join(`
|
|
110
|
-
`),E.hasAttribute("data-start")||E.setAttribute("data-start",String(N+1))}v.textContent=S,n.highlightElement(v)},function(S){E.setAttribute(l,c),v.textContent=S})}}),n.plugins.fileHighlight={highlight:function(E){for(var v=(E||document).querySelectorAll(d),m=0,g;g=v[m++];)n.highlightElement(g)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(tx);var j1=tx.exports;const sl=Dh(j1);(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism);(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(a,u){return a=a.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(a,u)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(a){return a?typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(s).join(""):""},l=function(a){for(var u=[],c=0;c<a.length;c++){var d=a[c],h=!1;if(typeof d!="string"&&(d.type==="tag"&&d.content[0]&&d.content[0].type==="tag"?d.content[0].content[0].content==="</"?u.length>0&&u[u.length-1].tagName===s(d.content[0].content[1])&&u.pop():d.content[d.content.length-1].content==="/>"||u.push({tagName:s(d.content[0].content[1]),openedBraces:0}):u.length>0&&d.type==="punctuation"&&d.content==="{"?u[u.length-1].openedBraces++:u.length>0&&u[u.length-1].openedBraces>0&&d.type==="punctuation"&&d.content==="}"?u[u.length-1].openedBraces--:h=!0),(h||typeof d=="string")&&u.length>0&&u[u.length-1].openedBraces===0){var p=s(d);c<a.length-1&&(typeof a[c+1]=="string"||a[c+1].type==="plain-text")&&(p+=s(a[c+1]),a.splice(c+1,1)),c>0&&(typeof a[c-1]=="string"||a[c-1].type==="plain-text")&&(p=s(a[c-1])+p,a.splice(c-1,1),c--),a[c]=new e.Token("plain-text",p,null,p)}d.content&&typeof d.content!="string"&&l(d.content)}};e.hooks.add("after-tokenize",function(a){a.language!=="jsx"&&a.language!=="tsx"||l(a.tokens)})})(Prism);(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(Prism);Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism);(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift});Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism);(function(e){function t(U,b){return U.replace(/<<(\d+)>>/g,function(Y,X){return"(?:"+b[+X]+")"})}function n(U,b,Y){return RegExp(t(U,b),"")}function r(U,b){for(var Y=0;Y<b;Y++)U=U.replace(/<<self>>/g,function(){return"(?:"+U+")"});return U.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(U){return"\\b(?:"+U.trim().replace(/ /g,"|")+")\\b"}var s=o(i.typeDeclaration),l=RegExp(o(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),a=o(i.typeDeclaration+" "+i.contextual+" "+i.other),u=o(i.type+" "+i.typeDeclaration+" "+i.other),c=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,p=t(/<<0>>(?:\s*<<1>>)?/.source,[h,c]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[a,p]),x=/\[\s*(?:,\s*)*\]/.source,E=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,x]),v=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[c,d,x]),m=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),g=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[m,y,x]),w={keyword:l,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,g]),lookbehind:!0,inside:w},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[s,p]),lookbehind:!0,inside:w},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:w},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:w},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[g,u,h]),inside:w}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[g,y]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[g]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,c]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(c),alias:"class-name",inside:w}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,p,h,g,l.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(g),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=S+"|"+C,N=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),k=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),L=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,_=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[L,_]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[L]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,M=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),W=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,R]),K=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),G=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,R]);function D(U,b){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[U]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[b,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[W]),lookbehind:!0,greedy:!0,inside:D(W,M)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:D(G,K)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp})(Prism);(function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby})(Prism);(function(e){function t(n,r){return"___"+n.toUpperCase()+r+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(i,function(l){if(typeof o=="function"&&!o(l))return l;for(var a=s.length,u;n.code.indexOf(u=t(r,a))!==-1;)++a;return s[a]=l,u}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language!==r||!n.tokenStack)return;n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);function s(l){for(var a=0;a<l.length&&!(i>=o.length);a++){var u=l[a];if(typeof u=="string"||u.content&&typeof u.content=="string"){var c=o[i],d=n.tokenStack[c],h=typeof u=="string"?u:u.content,p=t(r,c),y=h.indexOf(p);if(y>-1){++i;var x=h.substring(0,y),E=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),v=h.substring(y+p.length),m=[];x&&m.push.apply(m,s([x])),m.push(E),v&&m.push.apply(m,s([v])),typeof u=="string"?l.splice.apply(l,[a,1].concat(m)):u.content=m}}else u.content&&s(u.content)}return l}s(n.tokens)}}})})(Prism);(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(a){if(/<\?/.test(a.code)){var u=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;e.languages["markup-templating"].buildPlaceholders(a,"php",u)}}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")})})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,a){a=(a||"").replace(/m/g,"")+"m";var u=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return l});return RegExp(u,a)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);(function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(r){return r.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(Prism);(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,s=0;s<i.length;s++)o[i[s]]=e.languages.bash[i[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(c){return c=c.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(c){["url","bold","italic","strike","code-snippet"].forEach(function(d){c!==d&&(e.languages.markdown[c].inside.content.inside[d]=e.languages.markdown[d])})}),e.hooks.add("after-tokenize",function(c){if(c.language!=="markdown"&&c.language!=="md")return;function d(h){if(!(!h||typeof h=="string"))for(var p=0,y=h.length;p<y;p++){var x=h[p];if(x.type!=="code"){d(x.content);continue}var E=x.content[1],v=x.content[3];if(E&&v&&E.type==="code-language"&&v.type==="code-block"&&typeof E.content=="string"){var m=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase();var g="language-"+m;v.alias?typeof v.alias=="string"?v.alias=[v.alias,g]:v.alias.push(g):v.alias=[g]}}}d(c.tokens)}),e.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var d="",h=0,p=c.classes.length;h<p;h++){var y=c.classes[h],x=/language-(.+)/.exec(y);if(x){d=x[1];break}}var E=e.languages[d];if(E)c.content=e.highlight(u(c.content),E,d);else if(d&&d!=="none"&&e.plugins.autoloader){var v="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);c.attributes.id=v,e.plugins.autoloader.loadLanguages(d,function(){var m=document.getElementById(v);m&&(m.innerHTML=e.highlight(m.textContent,e.languages[d],d))})}}});var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function u(c){var d=c.replace(s,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,p){if(p=p.toLowerCase(),p[0]==="#"){var y;return p[1]==="x"?y=parseInt(p.slice(2),16):y=Number(p.slice(1)),a(y)}else{var x=l[p];return x||h}}),d}e.languages.md=e.languages.markdown})(Prism);Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;(function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return t}),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return r}),o={pattern:RegExp(r),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(a,u){return a=a.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return n}),RegExp(a,u)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},e.languages.dockerfile=e.languages.docker})(Prism);Prism.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/};Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/};Prism.hooks.add("after-tokenize",function(t){if(t.language!=="graphql")return;var n=t.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),r=0;function i(x){return n[r+x]}function o(x,E){E=E||0;for(var v=0;v<x.length;v++){var m=i(v+E);if(!m||m.type!==x[v])return!1}return!0}function s(x,E){for(var v=1,m=r;m<n.length;m++){var g=n[m],w=g.content;if(g.type==="punctuation"&&typeof w=="string"){if(x.test(w))v++;else if(E.test(w)&&(v--,v===0))return m}}return-1}function l(x,E){var v=x.alias;v?Array.isArray(v)||(x.alias=v=[v]):x.alias=v=[],v.push(E)}for(;r<n.length;){var a=n[r++];if(a.type==="keyword"&&a.content==="mutation"){var u=[];if(o(["definition-mutation","punctuation"])&&i(1).content==="("){r+=2;var c=s(/^\($/,/^\)$/);if(c===-1)continue;for(;r<c;r++){var d=i(0);d.type==="variable"&&(l(d,"variable-input"),u.push(d.content))}r=c+1}if(o(["punctuation","property-query"])&&i(0).content==="{"&&(r++,l(i(0),"property-mutation"),u.length>0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var p=r;p<h;p++){var y=n[p];y.type==="variable"&&u.indexOf(y.content)>=0&&l(y,"variable-input")}}}}});(function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(Prism);Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/};Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/};(function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(Prism);const _1={ts:"typescript",mts:"typescript",cts:"typescript",tsx:"tsx",js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"jsx",go:"go",py:"python",rs:"rust",java:"java",kt:"kotlin",kts:"kotlin",swift:"swift",c:"c",h:"c",cc:"cpp",cpp:"cpp",hpp:"cpp",cs:"csharp",rb:"ruby",php:"php",json:"json",jsonc:"json",yml:"yaml",yaml:"yaml",toml:"toml",sh:"bash",bash:"bash",zsh:"bash",sql:"sql",md:"markdown",mdx:"markdown",css:"css",scss:"scss",html:"markup",htm:"markup",xml:"markup",svg:"markup",vue:"markup",hcl:"hcl",tf:"hcl",graphql:"graphql",gql:"graphql",proto:"protobuf",ini:"ini",lua:"lua",dart:"dart"},Mp={Dockerfile:"docker",Makefile:"makefile",GNUmakefile:"makefile",".env":"bash"};function T1(e){const t=e.split("/").pop()??"";if(Mp[t])return Mp[t];if(t.startsWith("Dockerfile"))return"docker";const n=t.includes(".")?t.split(".").pop().toLowerCase():"",r=_1[n];return r&&sl.languages[r]?r:void 0}function jd(e,t){const n=sl.languages[t];if(!n)return e.map(s=>[{types:"",text:s}]);const r=[[]],i=(s,l)=>{l.split(`
|
|
111
|
-
`).forEach((u,c)=>{c>0&&r.push([]),u&&r[r.length-1].push({types:s,text:u})})},o=(s,l)=>{for(const a of s)if(typeof a=="string")i(l,a);else{const u=[a.type,...a.alias?Array.isArray(a.alias)?a.alias:[a.alias]:[]].join(" "),c=l?`${l} ${u}`:u;typeof a.content=="string"?i(c,a.content):o(Array.isArray(a.content)?a.content:[a.content],c)}};for(o(sl.tokenize(e.join(`
|
|
112
|
-
`),n),"");r.length<e.length;)r.push([]);return r}const Pp=5e3,Dp=1e3;function $1(e,t){const n=T1(e.path);if(!n)return;let r=0;for(const o of e.chunks)for(const s of o.lines)if(++r>Pp||s.content.length>Dp)return;const i=new Map;for(const o of e.chunks)zp(o,"old",n,i),zp(o,"new",n,i);return t&&t.length<=Pp&&t.every(o=>o.length<=Dp)&&jd(t,n).forEach((o,s)=>i.set(`new:${s+1}`,o)),i}function zp(e,t,n,r){const i=e.lines.filter(s=>s.type==="normal"||s.type===(t==="old"?"delete":"add"));if(!i.length)return;const o=jd(i.map(s=>s.content),n);i.forEach((s,l)=>r.set(`${t}:${t==="old"?s.oldLine:s.newLine}`,o[l]))}function I1(e,t){const n=t==null?void 0:t.toLowerCase();if(!(!n||!sl.languages[n]||e.length>1e5))return jd(e.split(`
|
|
113
|
-
`),n)}function L1({file:e,version:t}){const n=e.status==="added"?["new"]:e.status==="removed"?["old"]:["old","new"];return f.jsx("div",{className:`fs-images n${n.length}`,children:n.map(r=>f.jsx(A1,{side:r,path:r==="old"?e.oldPath??e.path:e.path,version:t},r))})}function A1({side:e,path:t,version:n}){const[r,i]=H.useState(null),[o,s]=H.useState(!1);return f.jsxs("figure",{className:`fs-image ${e}`,children:[f.jsxs("figcaption",{children:[f.jsx("span",{className:`fs-image-side ${e}`,children:e==="old"?"変更前":"変更後"}),r&&f.jsx("span",{className:"ds-muted",children:r})]}),f.jsx("div",{className:"fs-image-frame",children:o?f.jsx("span",{className:"ds-muted",children:"表示できませんでした"}):f.jsx("img",{src:Hy(t,e,n),alt:`${t}(${e==="old"?"変更前":"変更後"})`,onLoad:l=>i(`${l.currentTarget.naturalWidth} × ${l.currentTarget.naturalHeight}`),onError:()=>s(!0)})})]})}function R1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const O1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,P1={};function Fp(e,t){return(P1.jsx?M1:O1).test(e)}const D1=/[ \t\n\f\r]/g;function z1(e){return typeof e=="object"?e.type==="text"?Bp(e.value):!1:Bp(e)}function Bp(e){return e.replace(D1,"")===""}class Ao{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ao.prototype.normal={};Ao.prototype.property={};Ao.prototype.space=void 0;function nx(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ao(n,r,t)}function tc(e){return e.toLowerCase()}class St{constructor(t,n){this.attribute=n,this.property=t}}St.prototype.attribute="";St.prototype.booleanish=!1;St.prototype.boolean=!1;St.prototype.commaOrSpaceSeparated=!1;St.prototype.commaSeparated=!1;St.prototype.defined=!1;St.prototype.mustUseProperty=!1;St.prototype.number=!1;St.prototype.overloadedBoolean=!1;St.prototype.property="";St.prototype.spaceSeparated=!1;St.prototype.space=void 0;let F1=0;const ve=Lr(),Ge=Lr(),nc=Lr(),ae=Lr(),Re=Lr(),kr=Lr(),Nt=Lr();function Lr(){return 2**++F1}const rc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:Ge,commaOrSpaceSeparated:Nt,commaSeparated:kr,number:ae,overloadedBoolean:nc,spaceSeparated:Re},Symbol.toStringTag,{value:"Module"})),Ia=Object.keys(rc);class _d extends St{constructor(t,n,r,i){let o=-1;if(super(t,n),Up(this,"space",i),typeof r=="number")for(;++o<Ia.length;){const s=Ia[o];Up(this,Ia[o],(r&rc[s])===rc[s])}}}_d.prototype.defined=!0;function Up(e,t,n){n&&(e[t]=n)}function bi(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new _d(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[tc(r)]=r,n[tc(o.attribute)]=r}return new Ao(t,n,e.space)}const rx=bi({properties:{ariaActiveDescendant:null,ariaAtomic:Ge,ariaAutoComplete:null,ariaBusy:Ge,ariaChecked:Ge,ariaColCount:ae,ariaColIndex:ae,ariaColSpan:ae,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:Ge,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:Ge,ariaFlowTo:Re,ariaGrabbed:Ge,ariaHasPopup:null,ariaHidden:Ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:ae,ariaLive:null,ariaModal:Ge,ariaMultiLine:Ge,ariaMultiSelectable:Ge,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:ae,ariaPressed:Ge,ariaReadOnly:Ge,ariaRelevant:null,ariaRequired:Ge,ariaRoleDescription:Re,ariaRowCount:ae,ariaRowIndex:ae,ariaRowSpan:ae,ariaSelected:Ge,ariaSetSize:ae,ariaSort:null,ariaValueMax:ae,ariaValueMin:ae,ariaValueNow:ae,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ix(e,t){return t in e?e[t]:t}function ox(e,t){return ix(e,t.toLowerCase())}const B1=bi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kr,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alpha:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Re,autoFocus:ve,autoPlay:ve,blocking:Re,capture:null,charSet:null,checked:ve,cite:null,className:Re,closedBy:null,colorSpace:null,cols:ae,colSpan:ae,command:null,commandFor:null,content:null,contentEditable:Ge,controls:ve,controlsList:Re,coords:ae|kr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:nc,draggable:Ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Re,height:ae,hidden:nc,high:ae,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Re,itemRef:Re,itemScope:ve,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:ae,manifest:null,max:null,maxLength:ae,media:null,method:null,min:null,minLength:ae,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ve,optimum:ae,pattern:null,ping:Re,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Re,required:ve,reversed:ve,rows:ae,rowSpan:ae,sandbox:Re,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootCustomElementRegistry:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shadowRootSerializable:ve,shape:null,size:ae,sizes:null,slot:null,span:ae,spellCheck:Ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ae,step:null,style:null,tabIndex:ae,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:Ge,width:ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:ae,borderColor:null,bottomMargin:ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:ae,leftMargin:ae,link:null,longDesc:null,lowSrc:null,marginHeight:ae,marginWidth:ae,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:ae,rules:null,scheme:null,scrolling:Ge,standby:null,summary:null,text:null,topMargin:ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ae,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ve,disablePictureInPicture:ve,disableRemotePlayback:ve,exportParts:kr,part:Re,prefix:null,property:null,results:ae,security:null,unselectable:null},space:"html",transform:ox}),U1=bi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Nt,accentHeight:ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ae,amplitude:ae,arabicForm:null,ascent:ae,attributeName:null,attributeType:null,azimuth:ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ae,by:null,calcMode:null,capHeight:ae,className:Re,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ae,diffuseConstant:ae,direction:null,display:null,dur:null,divisor:ae,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:ae,enableBackground:null,end:null,event:null,exponent:ae,externalResourcesRequired:null,fill:null,fillOpacity:ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kr,g2:kr,glyphName:kr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ae,horizOriginX:ae,horizOriginY:ae,id:null,ideographic:ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ae,k:ae,k1:ae,k2:ae,k3:ae,k4:ae,kernelMatrix:Nt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ae,overlineThickness:ae,paintOrder:null,panose1:null,path:null,pathLength:ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ae,pointsAtY:ae,pointsAtZ:ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nt,rev:Nt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nt,requiredFeatures:Nt,requiredFonts:Nt,requiredFormats:Nt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ae,specularExponent:ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ae,strikethroughThickness:ae,string:null,stroke:null,strokeDashArray:Nt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ae,strokeOpacity:ae,strokeWidth:null,style:null,surfaceScale:ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nt,tabIndex:ae,tableValues:null,target:null,targetX:ae,targetY:ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ae,underlineThickness:ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ae,values:null,vAlphabetic:ae,vMathematical:ae,vectorEffect:null,vHanging:ae,vIdeographic:ae,version:null,vertAdvY:ae,vertOriginX:ae,vertOriginY:ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ix}),sx=bi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),lx=bi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ox}),ax=bi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),H1={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},W1=/[A-Z]/g,Hp=/-[a-z]/g,V1=/^data[-\w.:]+$/i;function G1(e,t){const n=tc(t);let r=t,i=St;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&V1.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Hp,q1);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Hp.test(o)){let s=o.replace(W1,K1);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=_d}return new i(r,t)}function K1(e){return"-"+e.toLowerCase()}function q1(e){return e.charAt(1).toUpperCase()}const Y1=nx([rx,B1,sx,lx,ax],"html"),Td=nx([rx,U1,sx,lx,ax],"svg");function X1(e){return e.join(" ").trim()}var Wp=/\/\*(?:[^*]|\*(?!\/))*\*\//g,Q1=/\n/g,Z1=/^\s*/,J1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,eE=/^:\s*/,tE=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,nE=/^[;\s]*/,rE=`
|
|
114
|
-
`,Vp="/",Gp="*",Mi="",iE="comment",oE="declaration";function sE(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var x=y.match(Q1);x&&(n+=x.length);var E=y.lastIndexOf(rE);r=~E?y.length-E:r+y.length}function o(){var y={line:n,column:r};return function(x){return x.position=new s(y),u(),x}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function l(y){var x=new Error(t.source+":"+n+":"+r+": "+y);if(x.reason=y,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function a(y){var x=y.exec(e);if(x){var E=x[0];return i(E),e=e.slice(E.length),x}}function u(){a(Z1)}function c(y){for(var x;x=d();)y.push(x);return y}function d(){var y=o();if(!(Vp!=e.charAt(0)||Gp!=e.charAt(1))){for(var x=2;Mi!=e.charAt(x)&&(Gp!=e.charAt(x)||Vp!=e.charAt(x+1));)++x;if(x+=2,Mi===e.charAt(x-1))return l("End of comment missing");var E=e.slice(2,x-2);return r+=2,i(E),e=e.slice(x),r+=2,y({type:iE,comment:E})}}function h(){var y=o(),x=a(J1);if(x){if(d(),!a(eE))return l("property missing ':'");var E=a(tE),v=y({type:oE,property:x[0].replace(Wp,Mi).trim(),value:E?E[0].replace(Wp,Mi).trim():Mi});return a(nE),v}}function p(){var y=[];c(y);for(var x;x=h();)y.push(x),c(y);return y}return u(),p()}function lE(e,t){let n=null;if(!e||typeof e!="string")return n;const r=sE(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:l}=o;i?t(s,l,o):l&&(n=n??{},n[s]=l)}),n}const ux=cx("end"),$d=cx("start");function cx(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function aE(e){const t=$d(e),n=ux(e);if(t&&n)return{start:t,end:n}}function to(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kp(e.position):"start"in e||"end"in e?Kp(e):"line"in e||"column"in e?ic(e):""}function ic(e){return qp(e&&e.line)+":"+qp(e&&e.column)}function Kp(e){return ic(e&&e.start)+"-"+ic(e&&e.end)}function qp(e){return e&&typeof e=="number"?e:1}class Rl extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=to(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Object.defineProperties(Rl.prototype,{file:{configurable:!0,enumerable:!0,value:"",writable:!0},name:{configurable:!0,enumerable:!0,value:"",writable:!0},reason:{configurable:!0,enumerable:!0,value:"",writable:!0},message:{configurable:!0,enumerable:!0,value:"",writable:!0},stack:{configurable:!0,enumerable:!0,value:"",writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});const Id={}.hasOwnProperty,uE=new Map,cE=/[A-Z]/g,dE=/-([a-z])/g,fE=new Set(["table","tbody","thead","tfoot","tr"]),pE=new Set(["td","th"]),dx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hE(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bE(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=kE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Td:Y1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=fx(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function fx(e,t,n){if(t.type==="element")return mE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xE(e,t,n);if(t.type==="mdxjsEsm")return yE(e,t);if(t.type==="root")return vE(e,t,n);if(t.type==="text")return wE(e,t)}function mE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Td,e.schema=i),e.ancestors.push(t);const o=hx(e,t.tagName,!1),s=EE(e,t);let l=Ad(e,t);return fE.has(t.tagName)&&(l=l.filter(function(a){return typeof a=="string"?!z1(a):!0})),px(e,s,o,t),Ld(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function gE(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Co(e,t.position)}function yE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Co(e,t.position)}function xE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Td,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:hx(e,t.name,!0),s=SE(e,t),l=Ad(e,t);return px(e,s,o,t),Ld(s,l),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function vE(e,t,n){const r={};return Ld(r,Ad(e,t)),e.create(t,e.Fragment,r,n)}function wE(e,t){return t.value}function px(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ld(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kE(e,t,n){return r;function r(i,o,s,l){const u=Array.isArray(s.children)?n:t;return l?u(o,s,l):u(o,s)}}function bE(e,t){return n;function n(r,i,o,s){const l=Array.isArray(o.children),a=$d(r);return t(i,o,s,l,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function EE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Id.call(t.properties,i)){const o=CE(e,i,t.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&pE.has(t.tagName)?r=l:n[s]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function SE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Co(e,t.position);else{const{name:i}=r;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Co(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Ad(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:uE;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const u=i.get(a)||0;s=a+"-"+u,i.set(a,u+1)}}const l=fx(e,o,s);l!==void 0&&n.push(l)}return n}function CE(e,t,n){if(n==null||typeof n=="number"&&Number.isNaN(n))return;const r=G1(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?R1(n):X1(n)),r.property==="style"?["style",typeof n=="object"?e.stylePropertyNameCase==="dom"?n:jE(n):NE(e,String(n))]:[e.elementAttributeNameCase==="react"&&r.space?H1[r.property]||r.property:r.attribute,n]}function NE(e,t){const n={};try{lE(t,function(r,i){if(r&&i){let o=r;o.slice(0,2)!=="--"&&(o=o.toLowerCase(),e.stylePropertyNameCase==="dom"&&(o.slice(0,4)==="-ms-"&&(o=o.slice(1)),o=o.replace(dE,$E))),n[o]=i}})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new Rl("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=dx+"#cannot-parse-style-attribute",o}return n}function hx(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const l=Fp(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=s}else r=Fp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Id.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Co(e)}function Co(e,t){const n=new Rl("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=dx+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jE(e){const t={};let n;for(n in e)Id.call(e,n)&&(t[_E(n)]=e[n]);return t}function _E(e){if(e.slice(0,2)==="--")return e;let t=e.replace(cE,TE);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TE(e){return"-"+e.toLowerCase()}function $E(e,t){return t.toUpperCase()}const La={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},IE={};function Ol(e,t){const n=IE,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mx(e,r,i)}function mx(e,t,n){if(LE(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yp(e.children,t,n)}return Array.isArray(e)?Yp(e,t,n):""}function Yp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=mx(e[i],t,n);return r.join("")}function LE(e){return!!(e&&typeof e=="object")}const Xp=document.createElement("i");function Rd(e){const t="&"+e+";";Xp.innerHTML=t;const n=Xp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function tn(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Ht(e,t){return e.length>0?(tn(e,e.length,0,t),e):t}const Qp={}.hasOwnProperty;function gx(e){const t={};let n=-1;for(;++n<e.length;)AE(t,e[n]);return t}function AE(e,t){let n;for(n in t){const i=(Qp.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){Qp.call(i,s)||(i[s]=[]);const l=o[s];RE(i[s],Array.isArray(l)?l:l?[l]:[])}}}function RE(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);tn(e,0,0,r)}function yx(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function nn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nt=lr(/[A-Za-z]/),rt=lr(/[\dA-Za-z]/),OE=lr(/[#-'*+\--9=?A-Z^-~]/);function ll(e){return e!==null&&(e<32||e===127)}const oc=lr(/\d/),ME=lr(/[\dA-Fa-f]/),xx=lr(/[!-/:-@[-`{-~]/);function ge(e){return e!==null&&e<-2}function Oe(e){return e!==null&&(e<0||e===32)}function ke(e){return e===-2||e===-1||e===32}const Ro=lr(new RegExp("\\p{P}|\\p{S}","u")),Tr=lr(/\s/);function lr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ei(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&rt(e.charCodeAt(n+1))&&rt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function je(e,t,n,r){const i=r?r-1:1/0;let o=0;return s;function s(a){return ke(a)?(e.enter(n),l(a)):t(a)}function l(a){return ke(a)&&o++<i?(e.consume(a),l):(e.exit(n),t(a))}}function vx(e,t,n,r,i,o){let s=0;return l;function l(c){return ke(c)?(e.enter(r),a(c)):u(c)}function a(c){return ke(c)&&s<o?(e.consume(c),s++,a):(e.exit(r),u(c))}function u(c){return s>=i?t(c):n(c)}}const PE={tokenize:DE};function DE(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),je(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ge(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),s)}}let al=class{constructor(){this.index=new Map,this.map=[]}add(t,n,r){Zp(this,t,n,r,!1)}addBefore(t,n,r){Zp(this,t,n,r,!0)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function Zp(e,t,n,r,i){if(n===0&&r.length===0)return;const o=e.index.get(t);if(o){o[1]+=n,i?(r.push(...o[2]),o[2]=r):o[2].push(...r);return}const s=[t,n,r];e.map.push(s),e.index.set(t,s)}const zE={tokenize:FE},Jp={tokenize:BE};function FE(e){const t=this,n=[];let r=0,i,o,s;return l;function l(g){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,a,u)(g)}return u(g)}function a(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const w=t.events.length;let C=w,S;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){S=t.events[C][1].end;break}v(r);let $=w;for(;$<t.events.length;)t.events[$][1].end={...S},$++;const O=new al;return O.add(C+1,0,t.events.slice(w)),O.add(w,$-w,[]),O.consume(t.events),u(g)}return l(g)}function u(g){if(r===n.length){if(!i)return h(g);if(i.currentConstruct&&i.currentConstruct.concrete)return y(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jp,c,d)(g)}function c(g){return i&&m(),v(r),h(g)}function d(g){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(g)}function h(g){return t.containerState={},e.attempt(Jp,p,y)(g)}function p(g){return r++,n.push([t.currentConstruct,t.containerState]),h(g)}function y(g){if(g===null){i&&m(),v(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(g)}function x(g){if(g===null){E(e.exit("chunkFlow"),!0),v(0),e.consume(g);return}return ge(g)?(e.consume(g),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(g),x)}function E(g,w){const C=t.sliceStream(g);if(w&&C.push(null),g.previous=o,o&&(o.next=g),o=g,i.defineSkip(g.start),i.write(C),t.parser.lazy[g.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const $=t.events.length;let O=$,N,k;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(N){k=t.events[O][1].end;break}N=!0}for(v(r),S=$;S<t.events.length;)t.events[S][1].end={...k},S++;const L=new al;L.add(O+1,0,t.events.slice($)),L.add($,S-$,[]),L.consume(t.events)}}function v(g){let w=n.length;for(;w-- >g;){const C=n[w];t.containerState=C[1],C[0].exit.call(t,e)}n.length=g}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BE(e,t,n){return je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nr(e){if(e===null||Oe(e)||Tr(e))return 1;if(Ro(e))return 2}function Ml(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const sc={name:"attention",resolveAll:UE,tokenize:HE};function UE(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const o=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,s={...e[i][1].end},l={...e[n][1].start};eh(s,-o),eh(l,o);const a={type:o>1?"strongSequence":"emphasisSequence",start:s,end:{...e[i][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:l},c={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},d={type:o>1?"strong":"emphasis",start:{...a.start},end:{...u.end}};e[i][1].end={...a.start},e[n][1].start={...u.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Ht(r,[["enter",e[i][1],t],["exit",e[i][1],t]])),r=Ht(r,[["enter",d,t],["enter",a,t],["exit",a,t],["enter",c,t]]),r=Ht(r,Ml(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Ht(r,[["exit",c,t],["enter",u,t],["exit",u,t],["exit",d,t]]);let h=0;e[n][1].end.offset-e[n][1].start.offset&&(h=2,r=Ht(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),tn(e,i-1,n-i+3,r),n=i+r.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function HE(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=nr(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),l(a)}function l(a){if(a===o)return e.consume(a),l;const u=e.exit("attentionSequence"),c=nr(a),d=!c||c===2&&i||n.includes(a)&&a!==42&&a!==95,h=!i||i===2&&c||n.includes(r)&&r!==42&&r!==95;return u._open=!!(o===42?d:d&&(i||!h)),u._close=!!(o===42?h:h&&(c||!d)),t(a)}}function eh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const WE={name:"autolink",tokenize:VE};function VE(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return nt(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||rt(p)?(r=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||rt(p))&&r++<32?(e.consume(p),l):(r=0,u(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ll(p)?n(p):(e.consume(p),a)}function u(p){return p===64?(e.consume(p),c):OE(p)?(e.consume(p),u):n(p)}function c(p){return rt(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||rt(p))&&r++<63){const y=p===45?h:d;return e.consume(p),y}return n(p)}}const Oo={partial:!0,tokenize:GE};function GE(e,t,n){return r;function r(o){return ke(o)?je(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ge(o)?t(o):n(o)}}const wx={continuation:{tokenize:qE},exit:YE,name:"blockQuote",tokenize:KE};function KE(e,t,n){const r=this;return i;function i(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ke(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function qE(e,t,n){const r=this;return i;function i(s){return ke(s)?je(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(wx,t,n)(s)}}function YE(e){e.exit("blockQuote")}const kx={name:"characterEscape",tokenize:XE};function XE(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return xx(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const bx={name:"characterReference",tokenize:QE};function QE(e,t,n){const r=this;let i=0,o,s;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=rt,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=ME,c):(e.enter("characterReferenceValue"),o=7,s=oc,c(d))}function c(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return s===rt&&!Rd(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):n(d)}}const lc={partial:!0,tokenize:ZE};function ZE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const th={concrete:!0,name:"codeFenced",tokenize:JE};function JE(e,t,n){const r=this,i={partial:!0,tokenize:C};let o=0,s=0,l;return a;function a(S){return u(S)}function u(S){const $=r.events[r.events.length-1];return o=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,l=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===l?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),ke(S)?je(e,d,"whitespace")(S):d(S))}function d(S){return S===null||ge(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(lc,x,w)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||ge(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):ke(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),je(e,p,"whitespace")(S)):S===96&&S===l?n(S):(e.consume(S),h)}function p(S){return S===null||ge(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||ge(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===l?n(S):(e.consume(S),y)}function x(S){return e.attempt(i,w,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),v}function v(S){return o>0&&ke(S)?je(e,m,"linePrefix",o+1)(S):m(S)}function m(S){return S===null||ge(S)?e.check(lc,x,w)(S):(e.enter("codeFlowValue"),g(S))}function g(S){return S===null||ge(S)?(e.exit("codeFlowValue"),m(S)):(e.consume(S),g)}function w(S){return e.exit("codeFenced"),t(S)}function C(S,$,O){let N=0;return k;function k(W){return S.enter("lineEnding"),S.consume(W),S.exit("lineEnding"),L}function L(W){return S.enter("codeFencedFence"),ke(W)?je(S,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):_(W)}function _(W){return W===l?(S.enter("codeFencedFenceSequence"),R(W)):O(W)}function R(W){return W===l?(N++,S.consume(W),R):N>=s?(S.exit("codeFencedFenceSequence"),ke(W)?je(S,M,"whitespace")(W):M(W)):O(W)}function M(W){return W===null||ge(W)?(S.exit("codeFencedFence"),$(W)):O(W)}}}const Aa={name:"codeIndented",tokenize:tS},eS={partial:!0,tokenize:nS};function tS(e,t,n){return r;function r(l){return e.enter("codeIndented"),vx(e,i,n,"linePrefix",4,4)(l)}function i(l){return l===null?s(l):ge(l)?e.attempt(eS,i,s)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||ge(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),o)}function s(l){return e.exit("codeIndented"),t(l)}}function nS(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ge(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):vx(e,t,o,"linePrefix",4,4)(s)}function o(s){return ge(s)?i(s):n(s)}}const rS={name:"codeText",previous:oS,resolve:iS,tokenize:sS};function iS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function oS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sS(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),r++,l):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):ge(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ge(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class lS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Pi(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Pi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Pi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pi(this.left,n.reverse())}}}function Pi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ex(e){const t={};let n=-1,r,i,o,s,l,a,u;const c=new lS(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,aS(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},l=c.slice(i,n),l.unshift(r),c.splice(i,n-i+1,l))}}return tn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function aS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,a=[],u={};let c,d,h=-1,p=n,y=0,x=0;const E=[x];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(x=h+1,E.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),h=E.length;h--;){const v=l.slice(E[h],E[h+1]),m=o.pop();a.push([m,m+v.length-1]),e.splice(m,2,v)}for(a.reverse(),h=-1;++h<a.length;)u[y+a[h][0]]=y+a[h][1],y+=a[h][1]-a[h][0]-1;return u}const uS={resolve:dS,tokenize:fS},cS={partial:!0,tokenize:pS};function dS(e){return Ex(e),e}function fS(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):ge(l)?e.check(cS,s,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function pS(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),je(e,o,"linePrefix")}function o(s){if(s===null||ge(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Sx(e,t,n,r,i,o,s,l,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),h):v===null||v===32||v===41||ll(v)?n(v):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(v))}function h(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(l),h(v)):v===null||v===60||ge(v)?n(v):(e.consume(v),v===92?y:p)}function y(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function x(v){return!c&&(v===null||v===41||Oe(v))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(v)):c<u&&v===40?(e.consume(v),c++,x):v===41?(e.consume(v),c--,x):v===null||v===32||v===40||ll(v)?n(v):(e.consume(v),v===92?E:x)}function E(v){return v===40||v===41||v===92?(e.consume(v),x):x(v)}}function Cx(e,t,n,r,i,o){const s=this;let l=0,a;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ge(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ge(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ke(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function Nx(e,t,n,r,i,o){let s;return l;function l(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,a):n(h)}function a(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),a(s)):h===null?n(h):ge(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),je(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ge(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:c)}function d(h){return h===s||h===92?(e.consume(h),c):c(h)}}function no(e,t){let n;return r;function r(i){return ge(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ke(i)?je(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const hS={name:"definition",tokenize:gS},mS={partial:!0,tokenize:yS};function gS(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Cx.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Oe(p)?no(e,u)(p):u(p)}function u(p){return Sx(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(mS,d,d)(p)}function d(p){return ke(p)?je(e,h,"whitespace")(p):h(p)}function h(p){return p===null||ge(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function yS(e,t,n){return r;function r(l){return Oe(l)?no(e,i)(l):n(l)}function i(l){return Nx(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return ke(l)?je(e,s,"whitespace")(l):s(l)}function s(l){return l===null||ge(l)?t(l):n(l)}}const xS={name:"hardBreakEscape",tokenize:vS};function vS(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ge(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const wS={name:"headingAtx",resolve:kS,tokenize:bS};function kS(e,t){let n=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};tn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])}return e}function bS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Oe(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||ge(c)?(e.exit("atxHeading"),t(c)):ke(c)?je(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Oe(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const jx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ac=["pre","script","style","textarea"],ES={concrete:!0,name:"htmlFlow",resolveTo:CS,tokenize:NS},SS={partial:!0,tokenize:jS};function CS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NS(e,t,n){const r=this;let i,o,s,l,a;return u;function u(j){return c(j)}function c(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),d}function d(j){return j===33?(e.consume(j),h):j===47?(e.consume(j),o=!0,x):j===63?(e.consume(j),i=3,r.interrupt?t:b):nt(j)?(e.consume(j),s=String.fromCharCode(j),E):n(j)}function h(j){return j===45?(e.consume(j),i=2,p):j===91?(e.consume(j),i=5,l=0,y):nt(j)?(e.consume(j),i=4,r.interrupt?t:b):n(j)}function p(j){return j===45?(e.consume(j),r.interrupt?t:b):n(j)}function y(j){const I="CDATA[";return j===I.charCodeAt(l++)?(e.consume(j),l===I.length?r.interrupt?t:_:y):n(j)}function x(j){return nt(j)?(e.consume(j),s=String.fromCharCode(j),E):n(j)}function E(j){if(j===null||j===47||j===62||Oe(j)){const I=j===47,T=s.toLowerCase();return!I&&!o&&ac.includes(T)?(i=1,r.interrupt?t(j):_(j)):jx.includes(s.toLowerCase())?(i=6,I?(e.consume(j),v):r.interrupt?t(j):_(j)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):o?m(j):g(j))}return j===45||rt(j)?(e.consume(j),s+=String.fromCharCode(j),E):n(j)}function v(j){return j===62?(e.consume(j),r.interrupt?t:_):n(j)}function m(j){return ke(j)?(e.consume(j),m):k(j)}function g(j){return j===47?(e.consume(j),k):j===58||j===95||nt(j)?(e.consume(j),w):ke(j)?(e.consume(j),g):k(j)}function w(j){return j===45||j===46||j===58||j===95||rt(j)?(e.consume(j),w):C(j)}function C(j){return j===61?(e.consume(j),S):ke(j)?(e.consume(j),C):g(j)}function S(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),a=j,$):ke(j)?(e.consume(j),S):O(j)}function $(j){return j===a?(e.consume(j),a=null,N):j===null||ge(j)?n(j):(e.consume(j),$)}function O(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Oe(j)?C(j):(e.consume(j),O)}function N(j){return j===47||j===62||ke(j)?g(j):n(j)}function k(j){return j===62?(e.consume(j),L):n(j)}function L(j){return j===null||ge(j)?_(j):ke(j)?(e.consume(j),L):n(j)}function _(j){return j===45&&i===2?(e.consume(j),K):j===60&&i===1?(e.consume(j),G):j===62&&i===4?(e.consume(j),Y):j===63&&i===3?(e.consume(j),b):j===93&&i===5?(e.consume(j),U):ge(j)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(SS,X,R)(j)):j===null||ge(j)?(e.exit("htmlFlowData"),R(j)):(e.consume(j),_)}function R(j){return e.check(lc,M,X)(j)}function M(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),W}function W(j){return j===null||ge(j)?R(j):(e.enter("htmlFlowData"),_(j))}function K(j){return j===45?(e.consume(j),b):_(j)}function G(j){return j===47?(e.consume(j),s="",D):_(j)}function D(j){if(j===62){const I=s.toLowerCase();return ac.includes(I)?(e.consume(j),Y):_(j)}return nt(j)&&s.length<8?(e.consume(j),s+=String.fromCharCode(j),D):_(j)}function U(j){return j===93?(e.consume(j),b):_(j)}function b(j){return j===62?(e.consume(j),Y):j===45&&i===2?(e.consume(j),b):_(j)}function Y(j){return j===null||ge(j)?(e.exit("htmlFlowData"),X(j)):(e.consume(j),Y)}function X(j){return e.exit("htmlFlow"),t(j)}}function jS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Oo,t,n)}}const _S={name:"htmlText",tokenize:TS};function TS(e,t,n){const r=this;let i,o,s;return l;function l(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),a}function a(b){return b===33?(e.consume(b),u):b===47?(e.consume(b),C):b===63?(e.consume(b),g):nt(b)?(e.consume(b),O):n(b)}function u(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),o=0,y):nt(b)?(e.consume(b),m):n(b)}function c(b){return b===45?(e.consume(b),p):n(b)}function d(b){return b===null?n(b):b===45?(e.consume(b),h):ge(b)?(s=d,G(b)):(e.consume(b),d)}function h(b){return b===45?(e.consume(b),p):d(b)}function p(b){return b===62?K(b):b===45?h(b):d(b)}function y(b){const Y="CDATA[";return b===Y.charCodeAt(o++)?(e.consume(b),o===Y.length?x:y):n(b)}function x(b){return b===null?n(b):b===93?(e.consume(b),E):ge(b)?(s=x,G(b)):(e.consume(b),x)}function E(b){return b===93?(e.consume(b),v):x(b)}function v(b){return b===62?K(b):b===93?(e.consume(b),v):x(b)}function m(b){return b===null||b===62?K(b):ge(b)?(s=m,G(b)):(e.consume(b),m)}function g(b){return b===null?n(b):b===63?(e.consume(b),w):ge(b)?(s=g,G(b)):(e.consume(b),g)}function w(b){return b===62?K(b):g(b)}function C(b){return nt(b)?(e.consume(b),S):n(b)}function S(b){return b===45||rt(b)?(e.consume(b),S):$(b)}function $(b){return ge(b)?(s=$,G(b)):ke(b)?(e.consume(b),$):K(b)}function O(b){return b===45||rt(b)?(e.consume(b),O):b===47||b===62||Oe(b)?N(b):n(b)}function N(b){return b===47?(e.consume(b),K):b===58||b===95||nt(b)?(e.consume(b),k):ge(b)?(s=N,G(b)):ke(b)?(e.consume(b),N):K(b)}function k(b){return b===45||b===46||b===58||b===95||rt(b)?(e.consume(b),k):L(b)}function L(b){return b===61?(e.consume(b),_):ge(b)?(s=L,G(b)):ke(b)?(e.consume(b),L):N(b)}function _(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,R):ge(b)?(s=_,G(b)):ke(b)?(e.consume(b),_):(e.consume(b),M)}function R(b){return b===i?(e.consume(b),i=void 0,W):b===null?n(b):ge(b)?(s=R,G(b)):(e.consume(b),R)}function M(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Oe(b)?N(b):(e.consume(b),M)}function W(b){return b===47||b===62||Oe(b)?N(b):n(b)}function K(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function G(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),D}function D(b){return ke(b)?je(e,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):U(b)}function U(b){return e.enter("htmlTextData"),s(b)}}const Od={name:"labelEnd",resolveAll:AS,resolveTo:RS,tokenize:OS},$S={tokenize:MS},IS={tokenize:PS},LS={tokenize:DS};function AS(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&tn(e,0,e.length,n),e}function RS(e,t){let n=e.length,r=0,i,o,s;for(;n--;){const c=e[n][1];if(i){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;e[n][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(i=n,c.type!=="labelLink")){r=2;break}}else c.type==="labelEnd"&&(o=n)}const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",a,t]],s=Ht(s,e.slice(i+1,i+r+3)),s=Ht(s,[["enter",u,t]]),s=Ht(s,Ml(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=Ht(s,[["exit",u,t],e[o-2],e[o-1],["exit",a,t]]),s=Ht(s,e.slice(o+1)),s=Ht(s,[["exit",l,t]]),tn(e,i,e.length,s),e}function OS(e,t,n){const r=this,i=r._labelStarts;let o,s;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();o=i[i.length-1]}return l;function l(h){return o?o._inactive?d(h):(s=r.parser.defined.includes(nn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)}function a(h){return h===40?e.attempt($S,c,s?c:d)(h):h===91?e.attempt(IS,c,s?u:d)(h):s?c(h):d(h)}function u(h){return e.attempt(LS,c,d)(h)}function c(h){return i.pop(),t(h)}function d(h){return o._balanced=!0,n(h)}}function MS(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Oe(d)?no(e,o)(d):o(d)}function o(d){return d===41?c(d):Sx(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Oe(d)?no(e,a)(d):c(d)}function l(d){return n(d)}function a(d){return d===34||d===39||d===40?Nx(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Oe(d)?no(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function PS(e,t,n){const r=this;return i;function i(l){return Cx.call(r,e,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(nn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function DS(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const zS={name:"labelStartImage",resolveAll:Od.resolveAll,tokenize:FS};function FS(e,t,n){const r=this;let i;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),i=e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(a))}}const BS={name:"labelStartLink",resolveAll:Od.resolveAll,tokenize:US};function US(e,t,n){const r=this;let i;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),i=e.exit("labelLink"),s}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(l))}}const Ra={name:"lineEnding",tokenize:HS};function HS(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),je(e,t,"linePrefix")}}const js={name:"thematicBreak",tokenize:WS};function WS(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||ge(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),ke(u)?je(e,l,"whitespace")(u):l(u))}}const xt={continuation:{tokenize:qS},exit:XS,name:"list",tokenize:KS},VS={partial:!0,tokenize:QS},GS={partial:!0,tokenize:YS};function KS(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:oc(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(js,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return oc(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Oo,r.interrupt?n:c,e.attempt(VS,h,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function d(p){return ke(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Oo,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,je(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!ke(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(GS,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,je(e,e.attempt(xt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function YS(e,t,n){const r=this;return je(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function XS(e){e.exit(this.containerState.type)}function QS(e,t,n){const r=this;return je(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ke(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const nh={name:"setextUnderline",resolveTo:ZS,tokenize:JS};function ZS(e,t){const n=new al;let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!s&&e[r][1].type==="definition"&&(s=r);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(n.add(o,0,[["enter",l,t]]),n.add(s+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[s][1].end}):e[i][1]=l,n.add(e.length,0,[["exit",l,t]]),n.consume(e),e}function JS(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),ke(u)?je(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||ge(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const eC={tokenize:tC};function tC(e){const t=this,n=e.attempt(Oo,r,e.attempt(this.parser.constructs.flowInitial,i,je(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uS,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const nC={resolveAll:Tx()},rC=_x("string"),iC=_x("text");function _x(e){return{resolveAll:Tx(e==="text"?oC:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,l);return s;function s(c){return u(c)?o(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const d=i[c];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Tx(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function oC(e,t){const n=new al;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let s=o.length,l=-1,a=0,u;for(;s--;){const c=o[s];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)u=!0,a++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(a=0),a){const c={type:r===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:i.start._bufferIndex+l,_index:i.start._index+s,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):n.add(r,0,[["enter",c,t],["exit",c,t]])}r++}return n.consume(e),e}const sC={42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:wx},lC={91:hS},aC={[-2]:Aa,[-1]:Aa,32:Aa},uC={35:wS,42:js,45:[nh,js],60:ES,61:nh,95:js,96:th,126:th},cC={38:bx,92:kx},dC={[-5]:Ra,[-4]:Ra,[-3]:Ra,33:zS,38:bx,42:sc,60:[WE,_S],91:BS,92:[xS,kx],93:Od,95:sc,96:rS},fC={null:[sc,nC]},pC={null:[42,95]},hC={null:[]},mC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pC,contentInitial:lC,disable:hC,document:sC,flow:uC,flowInitial:aC,insideSpan:fC,string:cC,text:dC},Symbol.toStringTag,{value:"Module"}));function gC(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],l=[];const a={attempt:$(C),check:$(S),consume:m,enter:g,exit:w,interrupt:$(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:d};let c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function d(L){return s=Ht(s,L),E(),s[s.length-1]!==null?[]:(O(t,0),u.events=Ml(o,u.events,u),u.events)}function h(L,_){return xC(p(L),_)}function p(L){return yC(s,L)}function y(){const{_bufferIndex:L,_index:_,line:R,column:M,offset:W}=r;return{_bufferIndex:L,_index:_,line:R,column:M,offset:W}}function x(L){i[L.line]=L.column,k()}function E(){for(;r._index<s.length;){const L=s[r._index];if(typeof L=="string"){const _=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<L.length;)v(L.charCodeAt(r._bufferIndex))}else v(L)}}function v(L){c=c(L)}function m(L){ge(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,k()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function g(L,_){const R=_||{};return R.type=L,R.start=y(),u.events.push(["enter",R,u]),l.push(R),R}function w(L){const _=l.pop();return _.end=y(),u.events.push(["exit",_,u]),_}function C(L,_){O(L,_.from)}function S(L,_){_.restore()}function $(L,_){return R;function R(M,W,K){let G,D,U,b;return Array.isArray(M)?X(M):"tokenize"in M?X([M]):Y(M);function Y(z){return q;function q(Q){const re=Q!==null&&z[Q],P=Q!==null&&z.null,te=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(P)?P:P?[P]:[]];return X(te)(Q)}}function X(z){return G=z,D=0,z.length===0?K:j(z[D])}function j(z){return q;function q(Q){return b=N(),U=z,z.partial||(u.currentConstruct=z),z.name&&u.parser.constructs.disable.null.includes(z.name)?T():z.tokenize.call(_?Object.assign(Object.create(u),_):u,a,I,T)(Q)}}function I(z){return L(U,b),W}function T(z){return b.restore(),++D<G.length?j(G[D]):K}}}function O(L,_){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&tn(u.events,_,u.events.length-_,L.resolve(u.events.slice(_),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function N(){const L=y(),_=u.previous,R=u.currentConstruct,M=u.events.length,W=Array.from(l);return{from:M,restore:K};function K(){r=L,u.previous=_,u.currentConstruct=R,u.events.length=M,l=W,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function yC(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function xC(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
115
|
-
`;break}case-3:{s=`\r
|
|
116
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function vC(e){const r={constructs:gx([mC,...(e||{}).extensions||[]]),content:i(PE),defined:[],document:i(zE),flow:i(eC),lazy:{},string:i(rC),text:i(iC)};return r;function i(o){return s;function s(l){return gC(r,o,l)}}}function wC(e){for(;!Ex(e););return e}const rh=/[\0\t\n\r]/g;function kC(){let e=1,t="",n=!0,r;return i;function i(o,s,l){o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o));const a=[];let u=0;for(t="",n&&(o.charCodeAt(0)===65279&&u++,n=void 0);u<o.length;){rh.lastIndex=u;const c=rh.exec(o),d=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(d);if(!c){t=o.slice(u);break}if(h===10&&u===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),u<d&&(a.push(o.slice(u,d)),e+=d-u),h){case 0:{a.push(65533),e++;break}case 9:{const p=Math.ceil(e/4)*4;for(a.push(-2);e++<p;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}u=d+1}return l&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const bC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function EC(e){return e.replace(bC,SC)}function SC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return yx(n.slice(o?2:1),o?16:10)}return Rd(n)||e}const $x={}.hasOwnProperty;function CC(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),NC(n)(wC(vC(n).document().write(kC()(e,t,!0))))}function NC(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(he),autolinkProtocol:k,autolinkEmail:k,atxHeading:s(Fe),blockQuote:s(te),characterEscape:k,characterReference:k,codeFenced:s(ce),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(ce,l),codeText:s(Ae,l),codeTextData:k,data:k,codeFlowValue:k,definition:s(Se),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(be),hardBreakEscape:s(B),hardBreakTrailing:s(B),htmlFlow:s(ne,l),htmlFlowData:k,htmlText:s(ne,l),htmlTextData:k,image:s(oe),label:l,link:s(he),listItem:s(ee),listItemValue:p,listOrdered:s(Z,h),listUnordered:s(Z),paragraph:s(fe),reference:I,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(Fe),strong:s(ye),thematicBreak:s(ie)},exit:{atxHeading:u(),atxHeadingSequence:S,autolink:u(),autolinkEmail:P,autolinkProtocol:re,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:q,characterReference:Q,codeFenced:u(v),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:x,codeFlowValue:L,codeIndented:u(m),codeText:u(K),codeTextData:L,data:L,definition:u(),definitionDestinationString:C,definitionLabelString:g,definitionTitleString:w,emphasis:u(),hardBreakEscape:u(R),hardBreakTrailing:u(R),htmlFlow:u(M),htmlFlowData:L,htmlText:u(W),htmlTextData:L,image:u(D),label:b,labelText:U,lineEnding:_,link:u(G),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:T,resourceDestinationString:Y,resourceTitleString:X,resource:j,setextHeading:u(N),setextHeadingLineSequence:O,setextHeadingText:$,strong:u(),thematicBreak:u()}};Ix(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let J={type:"root",children:[],position:void 0};const se={stack:[J],tokenStack:[],config:t,enter:a,exit:c,buffer:l,resume:d,data:n},ue=[],Ie=[];let xe=-1;for(;++xe<F.length;)if(Ie.push(F[xe]),F[xe][1].type==="listOrdered"||F[xe][1].type==="listUnordered")if(F[xe][0]==="enter")ue.push(Ie.length-1);else{const Ne=ue.pop();o(Ie,Ne)}for(F=Ie,xe=-1;++xe<F.length;){const Ne=t[F[xe][0]];F[xe][0]==="enter"&&t.beforeEnter.length>0&&i(t.beforeEnter,{...se,sliceSerialize:F[xe][2].sliceSerialize},F[xe][1]),$x.call(Ne,F[xe][1].type)&&Ne[F[xe][1].type].call({...se,sliceSerialize:F[xe][2].sliceSerialize},F[xe][1]),F[xe][0]==="exit"&&t.afterExit.length>0&&i(t.afterExit,{...se,sliceSerialize:F[xe][2].sliceSerialize},F[xe][1])}if(se.tokenStack.length>0){const Ne=se.tokenStack[se.tokenStack.length-1];(Ne[1]||ih).call(se,void 0,Ne[0])}for(J.position={start:Pn(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Pn(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe<t.transforms.length;)J=t.transforms[xe](J)||J;return J}function i(F,J,se){let ue=-1;for(;++ue<F.length;)F[ue].call(J,se)}function o(F,J){const se=F.length-1;let ue=J-1,Ie=-1,xe=!1,Ne,Le,dt,ft;const sn=[];for(;++ue<=se;){const pt=F[ue];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Ie++:Ie--,ft=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(Ne&&!ft&&!Ie&&!dt&&(dt=ue),ft=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ft=void 0}if(!Ie&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Ie===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(Ne){let Ln=ue;for(Le=void 0;Ln--;){const At=F[Ln];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;Le&&(F[Le][1].type="lineEndingBlank",xe=!0),At[1].type="lineEnding",Le=Ln}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}dt&&(!Le||dt<Le)&&(Ne._spread=!0),Ne.end=Object.assign({},Le?F[Le][1].start:pt[1].end),sn.push({at:Le||ue,event:["exit",Ne,pt[2]]})}if(pt[1].type==="listItemPrefix"){const Ln={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};Ne=Ln,sn.push({at:ue,event:["enter",Ln,pt[2]]}),dt=void 0,ft=!0}}}const Si=F.splice(J);let Ar=0;for(ue=-1;++ue<Si.length;){for(;Ar<sn.length&&sn[Ar].at===J+ue;)F.push(sn[Ar++].event);F.push(Si[ue])}F[J][1]._spread=xe}function s(F,J){return se;function se(ue){a.call(this,F(ue),ue),J&&J.call(this,ue)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(F,J,se){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([J,se||void 0]),F.position={start:Pn(J.start),end:void 0}}function u(F){return J;function J(se){F&&F.call(this,se),c.call(this,se)}}function c(F,J){const se=this.stack.pop(),ue=this.tokenStack.pop();if(!ue)throw new Error("Cannot close `"+F.type+"` ("+to({start:F.start,end:F.end})+"): it’s not open");ue[0].type!==F.type&&(J?J.call(this,F,ue[0]):(ue[1]||ih).call(this,F,ue[0])),se.position.end=Pn(F.end)}function d(){return Ol(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(F){if(this.data.expectingFirstListItemValue){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function y(){const F=this.resume(),J=this.stack[this.stack.length-1];J.lang=F}function x(){const F=this.resume(),J=this.stack[this.stack.length-1];J.meta=F}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F.replace(/(\r?\n|\r)$/g,"")}function g(F){const J=this.resume(),se=this.stack[this.stack.length-1];se.label=J,se.identifier=nn(this.sliceSerialize(F)).toLowerCase()}function w(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function C(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function S(F){const J=this.stack[this.stack.length-1];if(!J.depth){const se=this.sliceSerialize(F).length;J.depth=se}}function $(){this.data.setextHeadingSlurpLineEnding=!0}function O(F){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function k(F){const se=this.stack[this.stack.length-1].children;let ue=se[se.length-1];(!ue||ue.type!=="text")&&(ue=V(),ue.position={start:Pn(F.start),end:void 0},se.push(ue)),this.stack.push(ue)}function L(F){const J=this.stack.pop();J.value+=this.sliceSerialize(F),J.position.end=Pn(F.end)}function _(F){const J=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=J.children[J.children.length-1];se.position.end=Pn(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(J.type)&&(k.call(this,F),L.call(this,F))}function R(){this.data.atHardBreak=!0}function M(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function W(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function K(){const F=this.resume(),J=this.stack[this.stack.length-1];J.value=F}function G(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function D(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const J=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=J,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function U(F){const J=this.sliceSerialize(F),se=this.stack[this.stack.length-2];se.label=EC(J),se.identifier=nn(J).toLowerCase()}function b(){const F=this.stack[this.stack.length-1],J=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const ue=F.children;se.children=ue}else se.alt=J}function Y(){const F=this.resume(),J=this.stack[this.stack.length-1];J.url=F}function X(){const F=this.resume(),J=this.stack[this.stack.length-1];J.title=F}function j(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function T(F){const J=this.resume(),se=this.stack[this.stack.length-1];se.label=J,se.identifier=nn(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function z(F){this.data.characterReferenceType=F.type}function q(F){const J=this.sliceSerialize(F),se=this.data.characterReferenceType;let ue;se?(ue=yx(J,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=Rd(J);const Ie=this.stack[this.stack.length-1];Ie.value+=ue}function Q(F){const J=this.stack.pop();J.position.end=Pn(F.end)}function re(F){L.call(this,F);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(F)}function P(F){L.call(this,F);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(F)}function te(){return{type:"blockquote",children:[],position:void 0}}function ce(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function Ae(){return{type:"inlineCode",value:"",position:void 0}}function Se(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function be(){return{type:"emphasis",children:[],position:void 0}}function Fe(){return{type:"heading",depth:0,children:[],position:void 0}}function B(){return{type:"break",position:void 0}}function ne(){return{type:"html",value:"",position:void 0}}function oe(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function he(){return{type:"link",title:null,url:"",children:[],position:void 0}}function Z(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[],position:void 0}}function ee(F){return{type:"listItem",spread:F._spread,checked:null,children:[],position:void 0}}function fe(){return{type:"paragraph",children:[],position:void 0}}function ye(){return{type:"strong",children:[],position:void 0}}function V(){return{type:"text",value:"",position:void 0}}function ie(){return{type:"thematicBreak",position:void 0}}}function Pn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ix(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ix(e,r):jC(e,r)}}function jC(e,t){let n;for(n in t)if($x.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"afterExit":case"beforeEnter":{const r=t[n];r&&e[n].push(r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ih(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+to({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+to({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+to({start:t.start,end:t.end})+") is still open")}function _C(e){const t=this;t.parser=n;function n(r){return CC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function TC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $C(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
117
|
-
`}]}function IC(e,t){const n=t.value?t.value+`
|
|
118
|
-
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function LC(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AC(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RC(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ei(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(r,l);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function OC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Lx(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function PC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lx(e,t);const i={src:Ei(r.url||"")};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function DC(e,t){const n={src:Ei(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function zC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function FC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Lx(e,t);const i={href:Ei(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function BC(e,t){const n={href:Ei(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UC(e,t,n){const r=e.all(t),i=n?HC(n):Ax(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const c=r[l];(i||l!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
119
|
-
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
|
|
120
|
-
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function HC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const{children:n}=e;let r=-1;for(;!t&&++r<n.length;)t=Ax(n[r])}return t}function Ax(e){const{spread:t}=e;return t??e.children.length>1}function WC(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function VC(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function KC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qC(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=$d(t.children[1]),a=ux(t.children[t.children.length-1]);l&&a&&(s.position={start:l,end:a}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function YC(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let a=-1;const u=[];for(;++a<l;){const d=t.children[a],h={},p=s?s[a]:void 0;p&&(h.align=p);let y={type:"element",tagName:o,properties:h,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function XC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const oh=9,sh=32;function QC(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(lh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(lh(t.slice(i),i>0,!1)),o.join("")}function lh(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===oh||o===sh;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===oh||o===sh;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ZC(e,t){const n={type:"text",value:QC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function JC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const eN={blockquote:TC,break:$C,code:IC,delete:LC,emphasis:AC,footnoteReference:RC,heading:OC,html:MC,imageReference:PC,image:DC,inlineCode:zC,linkReference:FC,link:BC,listItem:UC,list:WC,paragraph:VC,root:GC,strong:KC,table:qC,tableCell:XC,tableRow:YC,text:ZC,thematicBreak:JC,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}const Rx=-1,Pl=0,ro=1,ul=2,Md=3,Pd=4,Dd=5,zd=6,Ox=7,Mx=8,{defineProperty:tN}=Object,Px=typeof self=="object"?self:globalThis,ah=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Px[e](t)},nN=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Pl:case Rx:return n(s,i);case ro:{const l=n([],i);for(const a of s)l.push(r(a));return l}case ul:{const l=n({},i);for(const[a,u]of s){const c=r(a),d=r(u);c==="__proto__"?tN(l,c,{value:d,configurable:!0,enumerable:!0,writable:!0}):l[c]=d}return l}case Md:return n(new Date(s),i);case Pd:{const{source:l,flags:a}=s;return n(new RegExp(l,a),i)}case Dd:{const l=n(new Map,i);for(const[a,u]of s)l.set(r(a),r(u));return l}case zd:{const l=n(new Set,i);for(const a of s)l.add(r(a));return l}case Ox:{const{name:l,message:a}=s;return n(typeof Px[l]=="function"?ah(l,a):new Error(a),i)}case Mx:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}case"-0":return-0}return n(ah(o,s),i)};return r},uh=e=>nN(new Map,e)(0),fr="",{toString:rN}={},{keys:iN,is:oN}=Object,Di=e=>{const t=typeof e;if(t!=="object"||!e)return[Pl,t];const n=rN.call(e).slice(8,-1);switch(n){case"Array":return[ro,fr];case"Object":return[ul,fr];case"Date":return[Md,fr];case"RegExp":return[Pd,fr];case"Map":return[Dd,fr];case"Set":return[zd,fr];case"DataView":return[ro,n]}return n.includes("Array")?[ro,n]:e instanceof Error?[Ox,e.name||"Error"]:[ul,n]},ss=([e,t])=>e===Pl&&(t==="function"||t==="symbol"),sN=(e,t,n,r)=>{const i=(s,l)=>{const a=r.push(s)-1;return n.set(l,a),a},o=s=>{if(n.has(s))return n.get(s);let[l,a]=Di(s);switch(l){case Pl:{let c=s;switch(a){case"bigint":l=Mx,c=s.toString();break;case"number":if(!s&&oN(s,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([Rx],s)}return i([l,c],s)}case ro:{if(a){let h=s;return a==="DataView"?h=new Uint8Array(s.buffer):a==="ArrayBuffer"&&(h=new Uint8Array(s)),i([a,[...h]],s)}const c=[],d=i([l,c],s);for(const h of s)c.push(o(h));return d}case ul:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],d=i([l,c],s);for(const h of iN(s))(e||!ss(Di(s[h])))&&c.push([o(h),o(s[h])]);return d}case Md:return i([l,isNaN(s.getTime())?fr:s.toISOString()],s);case Pd:{const{source:c,flags:d}=s;return i([l,{source:c,flags:d}],s)}case Dd:{const c=[],d=i([l,c],s);for(const[h,p]of s)(e||!(ss(Di(h))||ss(Di(p))))&&c.push([o(h),o(p)]);return d}case zd:{const c=[],d=i([l,c],s);for(const h of s)(e||!ss(Di(h)))&&c.push(o(h));return d}}const{message:u}=s;return i([l,{name:a,message:u}],s)};return o},ch=(e,{json:t,lossy:n}={})=>{const r=[];return sN(!(t||n),!!t,new Map,r)(e),r},cl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uh(ch(e,t)):structuredClone(e):(e,t)=>uh(ch(e,t));function lN(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function aN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lN,r=e.options.footnoteBackLabel||aN,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);c&&(l[u]=e.all(c))}for(u=-1;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const d=l[u],h=String(c.identifier).toUpperCase(),p=Ei(h.toLowerCase());let y=0;const x=[],E=e.footnoteCounts.get(h);for(;E!==void 0&&++y<=E;){x.length>0&&x.push({type:"text",value:" "});let g=typeof n=="string"?n:n(u,y);typeof g=="string"&&(g={type:"text",value:g}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,y),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const v=d[d.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const g=v.children[v.children.length-1];g&&g.type==="text"?g.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...x)}else d.push(...x);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(c,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...cl(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
121
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
122
|
-
`}]}}const Dl=function(e){if(e==null)return pN;if(typeof e=="function")return zl(e);if(typeof e=="object")return Array.isArray(e)?cN(e):dN(e);if(typeof e=="string")return fN(e);throw new Error("Expected function, string, or object as test")};function cN(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dl(e[n]);return zl(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function dN(e){const t=e;return zl(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function fN(e){return zl(t);function t(n){return n&&n.type===e}}function zl(e){return t;function t(n,r,i){return!!(hN(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function pN(){return!0}function hN(e){return e!==null&&typeof e=="object"&&"type"in e}const Dx=[],mN=!0,io=!1,uc="skip";function cc(e,t,n,r){if(!e||typeof e!="object")throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,o,s,l,a;if(typeof n=="function"||n&&typeof n=="object"?(o=t,s=n,r&&(i=!1)):(s=t,n&&(i=!1)),typeof s=="function")l=s;else if(s&&typeof s=="object"){if(!(s.enter===null||s.enter===void 0))if(typeof s.enter=="function")l=s.enter;else throw new Error("Unexpected value `"+s.enter+"` for `visitors.enter`, expected optional visitor");if(typeof s.exit=="function")a=s.exit;else throw new Error("Unexpected value `"+s.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw new Error("Unexpected value `"+s+"` for `enter` or `visitors`, expected visitor or object with visitors");const u=Dl(o),c=i?1:-1;d(e,void 0,[])();function d(h,p,y){const x=h&&typeof h=="object"?h:{};if(typeof x.type=="string"){const v=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(h.type+(v?"<"+v+">":""))+")"})}return E;function E(){const v=!o||u(h,p,y[y.length-1]||void 0);let m=Dx;if(l&&v&&(m=dh(l(h,y,p)),m[0]===io))return m;if("children"in h&&h.children){const g=h;if(g.children&&m[0]!==uc){let w=(i?-1:g.children.length)+c;const C=[...y,g];for(;w>-1&&w<g.children.length;){const S=g.children[w],$=d(S,w,C)();if($[0]===io)return $;w=typeof $[1]=="number"?$[1]:w+c}}}if(a&&v){const g=dh(a(h,y,p));if(g[0]===uc)throw new Error("Unexpected value `"+g[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(g[0]===io||typeof g[1]=="number")return g}return m}}}function dh(e){return Array.isArray(e)?e:typeof e=="number"?[mN,e]:e==null?Dx:[e]}function Fl(e,t,n,r){let i,o,s;o=t,s=n,typeof o=="function"?cc(e,i,dc(o),s):cc(e,i,gN(o),s)}function gN(e){return!e||typeof e!="object"?e:{enter:typeof e.enter=="function"?dc(e.enter):e.enter,exit:typeof e.exit=="function"?dc(e.exit):e.exit}}function dc(e){return t;function t(n,r,i){return e(n,i,r[r.length-1])}}const fc={}.hasOwnProperty,yN={};function xN(e,t){const n=t||yN,r=new Map,i=new Map,o=new Map,s={...eN,...n.handlers},l={all:u,applyData:wN,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:vN,wrap:bN};return Fl(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=String(c.identifier).toUpperCase();c.type==="definition"?r.has(d)||r.set(d,c):i.has(d)||i.set(d,c)}}),l;function a(c,d){const{type:h}=c,p=l.handlers[h];if(fc.call(l.handlers,h)&&p)return p(l,c,d);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in c){const{children:x,...E}=c;return{...cl(E),children:l.all(c)}}return cl(c)}return(l.options.unknownHandler||kN)(l,c,d)}function u(c){const d=[];if("children"in c){const h=c.children;let p=-1;for(;++p<h.length;){const y=l.one(h[p],c);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=fh(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=fh(x.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function vN(e,t){e.position&&(t.position=aE(e))}function wN(e,t){let n=t;if(e&&e.data){const{hChildren:r,hName:i,hProperties:o}=e.data;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,cl(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function kN(e,t){const n=t.data||{},r="value"in t&&!(fc.call(n,"hProperties")||fc.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bN(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
123
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
124
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
125
|
-
`}),n}function fh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ph(e,t){const n=xN(e,t),r=n.one(e,void 0),i=uN(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
126
|
-
`},i),o}function EN(e,t){return e&&"run"in e?async function(n,r){const i=ph(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ph(n,{file:r,...e||t})}}function hh(e){if(e)throw e}var _s=Object.prototype.hasOwnProperty,zx=Object.prototype.toString,mh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,yh=function(t){return typeof Array.isArray=="function"?Array.isArray(t):zx.call(t)==="[object Array]"},xh=function(t){if(!t||zx.call(t)!=="[object Object]")return!1;var n=_s.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&_s.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||_s.call(t,i)},vh=function(t,n){mh&&n.name==="__proto__"?mh(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},wh=function(t,n){if(n==="__proto__")if(_s.call(t,n)){if(gh)return gh(t,n).value}else return;return t[n]},SN=function e(){var t,n,r,i,o,s,l=arguments[0],a=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},a=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=wh(l,n),i=wh(t,n),l!==i&&(c&&i&&(xh(i)||(o=yh(i)))?(o?(o=!1,s=r&&yh(r)?r:[]):s=r&&xh(r)?r:{},vh(l,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&vh(l,{name:n,newValue:i}));return l};const Oa=Dh(SN);function pc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function CN(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(a,...u){const c=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?NN(c,l)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function NN(e,t){let n;return r;function r(...s){const l=e.length>s.length;let a;l&&s.push(i);try{a=e.apply(this,s)}catch(u){const c=u;if(l&&n)throw c;return i(c)}l||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...l){n||(n=!0,t(s,...l))}function o(s){i(null,s)}}const cn={basename:jN,dirname:_N,extname:TN,join:$N,sep:"/"};function jN(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mo(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function _N(e){if(Mo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function TN(e){Mo(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $N(...e){let t=-1,n;for(;++t<e.length;)Mo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":IN(n)}function IN(e){Mo(e);const t=e.codePointAt(0)===47;let n=LN(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function LN(e,t){let n="",r=0,i=-1,o=0,s=-1,l,a;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return n}function Mo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const AN={cwd:RN};function RN(){return"/"}function hc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ON(e){if(typeof e=="string")e=new URL(e);else if(!hc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return MN(e)}function MN(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ma=["history","path","basename","stem","extname","dirname"];class Fx{constructor(t){let n;t?hc(t)?n={path:t}:typeof t=="string"||PN(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":AN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ma.length;){const o=Ma[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ma.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(t){Da(t,"basename"),Pa(t,"basename"),this.path=cn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(t){kh(this.basename,"dirname"),this.path=cn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(t){if(Pa(t,"extname"),kh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hc(t)&&(t=ON(t)),Da(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(t){Da(t,"stem"),Pa(t,"stem"),this.path=cn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Rl(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pa(e,t){if(e&&e.includes(cn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cn.sep+"`")}function Da(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function PN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DN=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},zN={}.hasOwnProperty;class Fd extends DN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=CN()}copy(){const t=new Fd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Oa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ba("data",this.frozen),this.namespace[t]=n,this):zN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ba("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ls(t),r=this.parser||this.Parser;return za("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),za("process",this.parser||this.Parser),Fa("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const l=ls(t),a=r.parse(l);r.run(a,l,function(c,d,h){if(c||!d||!h)return u(c);const p=d,y=r.stringify(p,h);UN(y)?h.value=y:h.result=y,u(c,h)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),za("processSync",this.parser||this.Parser),Fa("processSync",this.compiler||this.Compiler),this.process(t,i),Eh("processSync","process",n),r;function i(o,s){n=!0,hh(o),r=s}}run(t,n,r){bh(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,l){const a=ls(n);i.run(t,a,u);function u(c,d,h){const p=d||t;c?l(c):s?s(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Eh("runSync","run",r),i;function o(s,l){hh(s),i=l,r=!0}}stringify(t,n){this.freeze();const r=ls(n),i=this.compiler||this.Compiler;return Fa("stringify",i),bh(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ba("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;a(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(i.settings=Oa(!0,i.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,c){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===u){h=d;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...y]=c;const x=r[h][1];pc(x)&&pc(p)&&(p=Oa(!0,x,p)),r[h]=[u,p,...y]}}}}const FN=new Fd().freeze();function za(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fa(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ba(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bh(e){if(!pc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ls(e){return BN(e)?e:new Fx(e)}function BN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function UN(e){return typeof e=="string"||HN(e)}function HN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sh=[],Ch={allowDangerousHtml:!0},VN=/^(https?|ircs?|mailto|xmpp)$/i,GN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function KN(e){const t=qN(e),n=YN(e);return XN(t.runSync(t.parse(n),n),e)}function qN(e){const t=e.rehypePlugins||Sh,n=e.remarkPlugins||Sh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ch}:Ch;return FN().use(_C).use(n).use(EN,r).use(t)}function YN(e){const t=e.children||"",n=new Fx;return typeof t=="string"&&(n.value=t),n}function XN(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,a=t.urlTransform||Bx;for(const c of GN)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+WN+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Fl(e,u),hE(e,{Fragment:f.Fragment,components:i,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function u(c,d,h){if(c.type==="raw"&&h&&typeof d=="number")return s?h.children.splice(d,1):h.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in La)if(Object.hasOwn(La,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],x=La[p];(x===null||x.includes(c.tagName))&&(c.properties[p]=a(String(y||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,h)),p&&h&&typeof d=="number")return l&&c.children?h.children.splice(d,1,...c.children):h.children.splice(d,1),d}}}function Bx(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||VN.test(e.slice(0,t))?e:""}function Nh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function QN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ZN(e,t,n){const i=Dl((n||{}).ignore||[]),o=JN(t);let s=-1;for(;++s<o.length;)cc(e,l);function l(u,c,d){if(u.type==="text"&&typeof d=="number")return a(u,c,d);if(i(u,d,c[c.length-1]))return uc}function a(u,c,d){const h=c[c.length-1],p=o[s][0],y=o[s][1];let x=0,E=!1,v=[];p.lastIndex=0;let m=p.exec(u.value);for(;m;){const w=m.index,C={index:m.index,input:m.input,stack:[...c,u]};let S=y(...m,C);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1)p.lastIndex=w+1;else{if(x!==w&&g({type:"text",value:u.value.slice(x,w)}),Array.isArray(S))for(const $ of S)g($);else S&&g(S);x=w+m[0].length,E=!0}if(!p.global)break;m=p.exec(u.value)}return E?(x<u.value.length&&g({type:"text",value:u.value.slice(x)}),h.children.splice(d,1,...v)):v=[u],d+v.length;function g(w){const C=v[v.length-1];C&&C.type==="text"&&w.type==="text"?C.value+=w.value:v.push(w)}}}function JN(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=[],n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([ej(i[0]),tj(i[1])])}return t}function ej(e){return typeof e=="string"?new RegExp(QN(e),"g"):e}function tj(e){return typeof e=="function"?e:function(){return e}}const Ua="phrasing",Ha=["autolink","link","image","label"];function nj(){return{transforms:[uj],enter:{literalAutolink:ij,literalAutolinkEmail:Wa,literalAutolinkHttp:Wa,literalAutolinkWww:Wa},exit:{literalAutolink:aj,literalAutolinkEmail:lj,literalAutolinkHttp:oj,literalAutolinkWww:sj}}}function rj(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ua,notInConstruct:Ha},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ua,notInConstruct:Ha},{character:":",before:"[ps]",after:"\\/",inConstruct:Ua,notInConstruct:Ha}]}}function ij(e){this.enter({type:"link",title:null,url:"",children:[],position:void 0},e)}function Wa(e){this.config.enter.autolinkProtocol.call(this,e)}function oj(e){this.config.exit.autolinkProtocol.call(this,e)}function sj(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lj(e){this.config.exit.autolinkEmail.call(this,e)}function aj(e){this.exit(e)}function uj(e){ZN(e,[[new RegExp("(?<![\\da-z])(https?:\\/\\/|www(?=\\.))([\\w-]*\\.[\\w\\-.]*)([^\\t\\n\\r ]*)","gi"),cj],[new RegExp("(?<![\\w+\\-.@])xmpp:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)(\\/(?:[\\w\\-/]|\\.(?=[\\dA-Za-z]))*)?","g"),pj],[new RegExp("(?<![\\w+\\-.@])mailto:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),fj],[new RegExp("(?<![\\w+\\-.]|(?:^|[^\\d@A-Za-z])(?:mailto|xmpp):)([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),dj]],{ignore:["link","linkReference"]})}function cj(e,t,n,r,i){if(!gj(i))return!1;let o="";if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),Ro(n.charCodeAt(0))||!hj(n))return!1;const s=mj(n+r),l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0],position:void 0}],position:void 0};return s[1]?[l,{type:"text",value:s[1],position:void 0}]:l}function dj(e,t,n){return/[\d\-_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n,position:void 0}],position:void 0}}function fj(e,t,n){if(/[\d\-_]$/.test(n))return!1;const r="mailto:"+t+"@"+n;return{type:"link",title:null,url:r,children:[{type:"text",value:r,position:void 0}],position:void 0}}function pj(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)==="@"))return!1;const o="xmpp:"+t+"@"+n+(r||"");return{type:"link",title:null,url:o,children:[{type:"text",value:o,position:void 0}],position:void 0}}function hj(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function mj(e){let t=e.length;for(;t>0;){const s=e.charCodeAt(t-1);if(s===33||s===34||s===38||s===39||s===41||s===44||s===46||s===58||s===59||s===60||s===62||s===63||s===93||s===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(")");const i=Nh(e,"(");let o=Nh(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function gj(e){const t=e.input.charCodeAt(e.index-1);return e.index===0||Tr(t)||Ro(t)}Ux.peek=Cj;function yj(){this.buffer()}function xj(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vj(){this.buffer()}function wj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function kj(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bj(e){this.exit(e)}function Ej(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=nn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Sj(e){this.exit(e)}function Cj(){return"["}function Ux(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),s(),o+=i.move("]"),o}function Nj(){return{enter:{gfmFootnoteCallString:yj,gfmFootnoteCall:xj,gfmFootnoteDefinitionLabelString:vj,gfmFootnoteDefinition:wj},exit:{gfmFootnoteCallString:kj,gfmFootnoteCall:bj,gfmFootnoteDefinitionLabelString:Ej,gfmFootnoteDefinition:Sj}}}function jj(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ux},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,s){const l=o.createTracker(s);let a=l.move("[^");const u=o.enter("footnoteDefinition"),c=o.enter("label");return a+=l.move(o.safe(o.associationId(r),{before:a,after:"]"})),c(),a+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),a+=l.move((t?`
|
|
127
|
-
`:" ")+o.indentLines(o.containerFlow(r,l.current()),t?Hx:_j))),u(),a}}function _j(e,t,n){return t===0?e:Hx(e,t,n)}function Hx(e,t,n){return(n?"":" ")+e}const Tj=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bd.attention=Rj;Bd.peek=Oj;function $j(){return{canContainEols:["delete"],enter:{strikethrough:Lj},exit:{strikethrough:Aj}}}function Ij(){return{handlers:{delete:Bd},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tj}]}}function Lj(e){this.enter({type:"delete",children:[],position:void 0},e)}function Aj(e){this.exit(e)}function Bd(e,t,n,r){const i=n.createTracker(r),o=n.stack.includes("strikethrough")?"~":"~~",s=n.enter("strikethrough");let l=i.move(o);return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move(o),s(),l}function Rj(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function Oj(){return"~"}function Mj(e){return e.length}function Pj(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Mj,o=[],s=[],l=[],a=[];let u=0,c=-1;for(;++c<e.length;){const x=[],E=[];let v=-1;for(e[c].length>u&&(u=e[c].length);++v<e[c].length;){const m=Dj(e[c][v]);if(n.alignDelimiters!==!1){const g=i(m);E[v]=g,(a[v]===void 0||g>a[v])&&(a[v]=g)}x.push(m)}s[c]=x,l[c]=E}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)o[d]=jh(r[d]);else{const x=jh(r);for(;++d<u;)o[d]=x}d=-1;const h=[],p=[];for(;++d<u;){const x=o[d];let E="",v="";x===99?(E=":",v=":"):x===108?E=":":x===114&&(v=":");let m=n.alignDelimiters===!1?1:Math.max(1,a[d]-E.length-v.length);const g=E+"-".repeat(m)+v;n.alignDelimiters!==!1&&(m=E.length+m+v.length,m>a[d]&&(a[d]=m),p[d]=m),h[d]=g}s.splice(1,0,h),l.splice(1,0,p),c=-1;const y=[];for(;++c<s.length;){const x=s[c],E=l[c],v=n.fillRows===!1?Math.max(1,s[c===1?0:c].length):u;d=-1;const m=[];for(;++d<v;){const g=x[d]||"";let w="",C="";if(n.alignDelimiters!==!1){const S=a[d]-(E[d]||0),$=o[d];if($===114)w=" ".repeat(S);else if($===99){const O=S/2;S%2?(w=" ".repeat(O+.5),C=" ".repeat(O-.5)):(w=" ".repeat(O),C=w)}else C=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(w),m.push(g),n.alignDelimiters!==!1&&m.push(C),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==v-1)&&m.push("|")}y.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return y.join(`
|
|
128
|
-
`)}function Dj(e){return e==null?"":String(e)}function jh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const zj=Dl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Fj(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),Bj);return i(),s}function Bj(e,t,n){return">"+(n?"":" ")+e}function Uj(e,t){return _h(e,t.inConstruct,!0)&&!_h(e,t.notInConstruct,!1)}function _h(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Th(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){const o=n.unsafe[i];if(o.character===`
|
|
129
|
-
`&&!o.before&&!o.after&&Uj(n.stack,o))return/[\t ]/.test(r.before)?"":" "}return`\\
|
|
130
|
-
`}function Hj(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function Wj(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Vj(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Gj(e,t,n,r){const i=Vj(n),o=e.value||"";if(Wj(e,n)){const d=n.enter("codeIndented"),h=n.indentLines(o,Kj);return d(),h}const s=n.createTracker(r),l=i.repeat(Math.max(Hj(o,i)+1,3)),a=n.enter("codeFenced"),u=i==="`"?"GraveAccent":"Tilde";let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${u}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${u}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:`
|
|
131
|
-
`,encode:["`"],...s.current()})),d()}return c+=s.move(`
|
|
132
|
-
`),o&&(c+=s.move(o+`
|
|
133
|
-
`)),c+=s.move(l),a(),c}function Kj(e,t,n){return(n?"":" ")+e}function Ud(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function qj(e,t,n,r){const i=Ud(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
134
|
-
`,...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),s(),u}function Yj(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function dl(e){const t=e.codePointAt(0);return t===void 0?"":String.fromCodePoint(t)}function si(e){const t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function Wx(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $h(e,t,n){const r=nr(e),i=nr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Xj(e){if(e.charCodeAt(0)!==60)return;const t=e.charCodeAt(1);if(t===33){const l=e.charCodeAt(2);return l===45?2:l===91?5:nt(l)?4:void 0}if(t===63)return 3;const n=t===47,r=n?2:1;let i=r,o=e.charCodeAt(i);if(!nt(o))return;for(;o===45||rt(o);)o=e.charCodeAt(++i);const s=e.slice(r,i).toLowerCase();return!n&&o!==47&&ac.includes(s)?1:jx.includes(s)?6:7}const Vx=new Map([["*",!1],["_",!0]]);function Qj(e,t,n){const r=new Set;for(const o of e){const s=n.get(o);if(s&&o.attention&&t.some(l=>l.attention===o.attention))for(const l of s.tokens)r.add(l.attention)}const i=[];for(const o of e)o.attention&&r.delete(o.attention)&&i.push(o.attention);return i.reverse(),i}function Gx(e,t,n){const r=[],i=new Map,o=new Map;let s=0;for(;s<e.length;){if(!e[s].attention){s++;continue}const l=e[s].value.charAt(0),a=Vx.get(l);let u=s+1;for(;u<e.length&&e[u].attention&&e[u].value.charAt(0)===l;)u++;const c=s?e[s-1].value:t,d=nr(c.charCodeAt(c.length-1)),h=nr((u<e.length?e[u].value:n).charCodeAt(0)),p=!h||h===2&&!!d,y=!d||d===2&&!!h,x={tokens:e.slice(s,u),markers:[],start:0,end:0,open:a?p&&(!!d||!y):p,close:a?y&&(!!h||!p):y,split:a!==void 0};for(const E of x.tokens){i.set(E,[...x.tokens]),o.set(E,x);let v=E.value.length;for(;v--;)x.markers.push(E)}x.end=x.markers.length,r.push(x),s=u}for(Jj(r,i),s=-1;++s<e.length;){const l=i.get(e[s]);if(l)return{attention:Qj(e,l,o),index:s}}}function as(e,t){const n=e[t?0:e.length-1];if(!n||n.attention)return;const r=t?dl(n.value):si(n.value),i=Wx(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let o=n.value.slice(0,n.value.length-r.length),s=0;for(;o.charCodeAt(o.length-1-s)===92;)s++;s%2&&(o+="\\"),n.value=o+i}}function Zj(e,t,n,r,i){for(const o of n.attention){const s=t.get(o)||o.sequences[0];for(const l of o.sequences){if(l===s)continue;const a=new Map(t);a.set(o,l);const u=Bl(e,a,r,i),c=Gx(u,r,i);if(!c||c.index>n.index)return{chosen:a,mistake:c,tokens:u}}}}function Jj(e,t){const n=new Map;for(const r of e){const i=r.tokens[0].value.charAt(0);let o=n.get(i);o||(o=[],n.set(i,o));let s=r.close?o.length:0;for(;s--&&r.start<r.end;){const l=o[s],a=l.end-l.start,u=r.end-r.start;if(r.split?(l.close||r.open)&&u%3&&!((a+u)%3):a!==l.markers.length||a!==u)continue;const c=r.split?a>1&&u>1?2:1:u,d=l.markers.slice(l.end-c,l.end),h=r.markers.slice(r.start,r.start+c),p=d[0],y=h[0];if(p===d[c-1]&&p.value.length===c&&y===h[c-1]&&y.value.length===c&&p.attention===y.attention)t.delete(p),t.delete(y);else{const x=[...new Set([...d,...h])];for(const E of x){const v=t.get(E);v&&v.push(...x)}}l.end-=c,r.start+=c,l.start===l.end&&o.splice(s,1),s=o.length}r.open&&r.start<r.end&&o.push(r)}}function e_(e,t,n){if(t.length===0)throw new Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw new Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(const i of n)if(!Number.isSafeInteger(i)||i<1)throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as size, expected positive integer");const r=[];for(const i of t){if(i.length!==1)throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!xx(i.charCodeAt(0)))throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(const o of n)r.push(i.repeat(o))}return r}function t_(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let s=-1,l=n.before;r.push(-1);let a=t.createTracker(n);for(;++s<i.length;){const u=i[s];let c;if(r[r.length-1]=s,s+1<i.length){let p=t.handle.handlers[i[s+1].type];p&&p.peek&&(p=p.peek),c=p?dl(p(i[s+1],e,t,{before:"",after:"",...a.current()})):""}else c=n.after;const d=o[o.length-1];typeof d=="string"&&(l==="\r"||l===`
|
|
135
|
-
`)&&u.type==="html"&&Xj(u.value)!==7&&(o[o.length-1]=d.replace(/(\r?\n|\r)$/," "),l=" ",a=t.createTracker(n),a.move(Ul(o,n.before,n.after)));const h=t.handle.handlers[u.type];if(h&&h.attention){const p=Hd(u,h.attention,t,a);if(!p)continue;o.push(p),l=si(p.sequences[0])}else{const p=t.handle(u,e,t,{...a.current(),after:c,before:l});if(!p)continue;a.move(p),o.push(p),l=si(p)}}return r.pop(),o}function Hd(e,t,n,r){const{construct:i,markers:o,sizes:s}=t(e,n),l=e_(e.type,o,s),a=l[0],u=n.enter(i),c=n.createTracker(r.current());c.move(a);const d=t_(e,n,{...c.current(),before:a,after:a});if(u(),d.length!==0)return r.move(a),r.move(Ul(d,a,a)),r.move(a),{children:d,sequences:l}}function Ih(e,t,n,r){let i=Bl(e,t,n,r),o=Gx(i,n,r);for(;o;){const s=Zj(e,t,o,n,r);if(!s)return;t=s.chosen,i=s.tokens,o=s.mistake}return i}function Kx(e,t,n,r){let i=n,o=-1;for(;++o<e.length;){const s=e[o];if(typeof s=="string"){i="";continue}const l=o===e.length-1?r:"",a=s.sequences.find(function(u){const c=u.charAt(0);return c!==i.charAt(0)&&c!==l.charAt(0)||e.length===1&&Vx.has(c)&&u.length>n.length})||s.sequences[0];a!==s.sequences[0]&&t.set(s,a),Kx(s.children,t,a,a),i=a}}function Bl(e,t,n,r){const i=[];let o,s=si(n),l=-1;for(;++l<e.length;){const a=e[l];if(typeof a=="string"){const g={value:a,attention:void 0};o&&o===dl(a)&&as([g],!0),o=void 0,i.push(g),g.value&&(s=si(g.value));continue}const u=t.get(a)||a.sequences[0],c=u.charAt(0),d=e[l+1],h=s,p=dl(d===void 0?r:typeof d=="string"?d:t.get(d)||d.sequences[0]),y=Bl(a.children,t,u,u),x=y[0].value,E=$h(h.charCodeAt(h.length-1),x.charCodeAt(0),c);E.inside&&as(y,!0);const v=si(y[y.length-1].value),m=$h(p.charCodeAt(0),v.charCodeAt(v.length-1),c);m.inside&&as(y,!1),E.outside&&h!==`
|
|
136
|
-
`&&h!=="\r"&&as(i,!1),m.outside&&(o=p),i.push({value:u,attention:a},...y,{value:u,attention:a}),s=u.charAt(u.length-1)}return i}function Ul(e,t,n){const r=new Map;Kx(e,r,t,n);const i=(r.size>0?Ih(e,r,t,n):void 0)||Ih(e,new Map,t,n)||Bl(e,new Map,t,n);let o="";for(const s of i)o+=s.value;return o}Wd.attention=qx;Wd.peek=n_;function Wd(e,t,n,r){const i=n.enter("phrasing"),o=Hd(e,qx,n,n.createTracker(r)),s=o?Ul([o],r.before,r.after):"";return i(),s}function qx(e,t){return{construct:"emphasis",markers:Yj(t)==="*"?["*","_"]:["_","*"],sizes:[1]}}function n_(e,t,n){return n.options.emphasis||"*"}function r_(e,t){let n=!1;return Fl(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,io}),!!((!e.depth||e.depth<3)&&Ol(e)&&(t.options.setext||n))}function i_(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(r_(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
|
137
|
-
`,after:`
|
|
138
|
-
`});return h(),d(),p+`
|
|
139
|
-
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
140
|
-
`))+1))}const s="#".repeat(i),l=n.enter("headingAtx"),a=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
141
|
-
`,...o.current()});const c=u.charCodeAt(0);return(c===9||c===32)&&(u=Wx(c)+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),l(),u}Yx.peek=o_;function Yx(e){return e.value||""}function o_(){return"<"}Xx.peek=s_;function Xx(e,t,n,r){const i=Ud(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function s_(){return"!"}Qx.peek=l_;function Qx(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("![");const u=n.safe(e.alt,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const c=n.stack;n.stack=c.filter(function(h){return h!=="phrasing"}),s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function l_(){return"!"}Zx.peek=a_;function Zx(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],l=n.compilePattern(s);if(!s.atBreak)continue;let a;for(;a=l.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function a_(){return"`"}function Jx(e,t){const n=Ol(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ev.peek=u_;function ev(e,t,n,r){const i=Ud(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);if(Jx(e,n)){const y=n.stack;n.stack=y.filter(function(v){return v!=="phrasing"});const x=n.enter("autolink");let E=s.move("<");return E+=s.move(n.containerPhrasing(e,{before:E,after:">",...s.current()})),E+=s.move(">"),x(),n.stack=y,E}const l=n.enter("link");let a=n.enter("label"),u=s.move("[");const c=n.containerPhrasing(e,{before:u,after:"](",...s.current()});u+=s.move(c),a(),u+=s.move("](");const d=/[\0- \u007F]/.test(e.url),h=r.before.charAt(r.before.length-1);let p=e.title||void 0;if(!p&&!d&&(h===`
|
|
142
|
-
`||h==="\r")){let y=0;for(;y<c.length&&c.charCodeAt(y)!==93;)y+=c.charCodeAt(y)===92?2:1;c.charCodeAt(y+1)===58&&(p="")}return!e.url&&typeof p=="string"||d?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:typeof p=="string"?" ":")",...s.current()}))),a(),typeof p=="string"&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(p,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function u_(e,t,n){return Jx(e,n)?"<":"["}tv.peek=c_;function tv(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let a=l.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...l.current()});a+=l.move(u+"]["),s();const c=n.stack;n.stack=c.filter(function(h){return h!=="phrasing"}),s=n.enter("reference");const d=n.safe(n.associationId(e),{before:a,after:"]",...l.current()});return s(),n.stack=c,o(),i==="full"||!u||u!==d?a+=l.move(d+"]"):i==="shortcut"?a=a.slice(0,-1):a+=l.move("]"),a}function c_(){return"["}function Vd(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function d_(e){const t=Vd(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function f_(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nv(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function p_(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?f_(n):Vd(n);const l=e.ordered?s==="."?")":".":d_(n);let a=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),nv(n)===s&&c){let d=-1;for(;++d<e.children.length;){const h=e.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(s=l),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function h_(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function m_(e,t,n,r){const i=h_(n);let o=n.bulletCurrent||Vd(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(s-o.length)),l.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),c);return a(),u;function c(d,h,p){return h?(p?"":" ".repeat(s))+d:(p?o:o+" ".repeat(s-o.length))+d}}function g_(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}function y_(e,t,n,r){if(!e.children.some(function(l){return zj(l)}))return n.containerFlow(e,r);const o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),s}function x_(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gd.attention=rv;Gd.peek=v_;function Gd(e,t,n,r){const i=n.enter("phrasing"),o=Hd(e,rv,n,n.createTracker(r)),s=o?Ul([o],r.before,r.after):"";return i(),s}function rv(e,t){return{construct:"strong",markers:x_(t)==="*"?["*","_"]:["_","*"],sizes:[2]}}function v_(e,t,n){return n.options.strong||"*"}function w_(e,t,n,r){const i=t?t.children:[],o=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})}function k_(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function b_(e,t,n){const r=(nv(n)+(n.options.ruleSpaces?" ":"")).repeat(k_(n));return n.options.ruleSpaces?r.slice(0,-1):r}const mc={blockquote:Fj,break:Th,code:Gj,definition:qj,emphasis:Wd,hardBreak:Th,heading:i_,html:Yx,image:Xx,imageReference:Qx,inlineCode:Zx,link:ev,linkReference:tv,list:p_,listItem:m_,paragraph:g_,root:y_,strong:Gd,text:w_,thematicBreak:b_};function E_(){return{enter:{table:S_,tableData:Lh,tableHeader:Lh,tableRow:N_},exit:{codeText:j_,table:C_,tableData:Va,tableHeader:Va,tableRow:Va}}}function S_(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[],position:void 0},e),this.data.inTable=!0}function C_(e){this.exit(e),this.data.inTable=void 0}function N_(e){this.enter({type:"tableRow",children:[],position:void 0},e)}function Va(e){this.exit(e)}function Lh(e){this.enter({type:"tableCell",children:[],position:void 0},e)}function j_(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,__));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function __(e,t){return t==="|"?t:e}function T_(e){const t=e||{},{tableCellPadding:n,tablePipeAlign:r,stringLength:i}=t,o=n?" ":"|";return{handlers:{inlineCode:h,table:s,tableCell:a,tableRow:l},join:[$_],unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
143
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}]};function s(p,y,x,E){const v=c(p,x,E),m=v[0];if(m){let g=p.align?p.align.length:0,w=-1;if(!g)for(;++w<v.length;)v[w].length>g&&(g=v[w].length);for(;m.length<g;)m.push("")}return u(v,p.align)}function l(p,y,x,E){const v=d(p,x,E),m=u([v]);return m.slice(0,m.indexOf(`
|
|
144
|
-
`))}function a(p,y,x,E){const v=x.enter("tableCell"),m=x.enter("phrasing"),g=x.containerPhrasing(p,{...E,before:o,after:o});return m(),v(),g}function u(p,y){return Pj(p,{align:y,alignDelimiters:r,fillRows:!1,padding:n,stringLength:i})}function c(p,y,x){const{children:E}=p;let v=-1;const m=[],g=y.enter("table");for(;++v<E.length;)m[v]=d(E[v],y,x);return g(),m}function d(p,y,x){const{children:E}=p;let v=-1;const m=[],g=y.enter("tableRow");for(;++v<E.length;)m[v]=a(E[v],p,y,x);return g(),m}function h(p,y,x){const E=mc.inlineCode(p,y,x);if(!x.stack.includes("tableCell"))return E;const v=[];let m=0,g=E.indexOf("|");for(;g!==-1;){let w=g;for(;w>m&&E.charCodeAt(w-1)===92;)w--;v.push(E.slice(m,g)),(g-w)%2===0&&v.push("\\"),m=g,g=E.indexOf("|",g+1)}return v.push(E.slice(m)),v.join("")}}function $_(e,t,n,r){if(e.type==="table"&&n.type==="listItem"&&n.spread===!1&&(t.type==="definition"||t.type==="heading"&&I_(t,r)||t.type==="paragraph"||t.type==="table"))return 1}function I_(e,t){let n=!1;return Fl(e,function(r){if(r.type==="break"||"value"in r&&/\r?\n|\r/.test(r.value))return n=!0,io}),!!((!e.depth||e.depth<3)&&Ol(e)&&(t.options.setext||n))}function L_(){return{exit:{taskListCheckValueChecked:Ah,taskListCheckValueUnchecked:Ah,paragraph:R_}}}function A_(){return{handlers:{paragraph:O_},join:[M_]}}function Ah(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function R_(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){s=l;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start={...r.position.start}))}}this.exit(e)}function O_(e,t,n,r){if(!t||t.type!=="listItem"||iv(t)!==e)return mc.paragraph(e,t,n,r);const i="["+(t.checked?"x":" ")+"] ",o=n.createTracker(r);o.move(i);const s=mc.paragraph(e.children.length>0?e:{type:"paragraph",children:[{type:"text",value:" "}]},t,n,{...r,...o.current()});return i+s}function M_(e,t,n){if(!(e.type==="definition"&&n.type==="listItem"))return;const r=iv(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function iv(e){if(typeof e.checked=="boolean")for(const t of e.children){if(t.type==="paragraph")return t;if(t.type!=="definition")return}}function P_(){return[nj(),Nj(),$j(),E_(),L_()]}function D_(e){return{extensions:[rj(),jj(e),Ij(),T_(e),A_()]}}const z_={tokenize:V_,partial:!0},ov={tokenize:G_,partial:!0},sv={tokenize:K_,partial:!0},lv={tokenize:q_,partial:!0},F_={tokenize:Y_,partial:!0},av={name:"wwwAutolink",tokenize:H_,previous:cv},uv={name:"protocolAutolink",tokenize:W_,previous:dv},In={name:"emailAutolink",tokenize:U_,previous:fv},gn={};function B_(){return{text:gn}}let ur=48;for(;ur<123;)gn[ur]=In,ur++,ur===58?ur=65:ur===91&&(ur=97);gn[43]=In;gn[45]=In;gn[46]=In;gn[95]=In;gn[72]=[In,uv];gn[104]=[In,uv];gn[87]=[In,av];gn[119]=[In,av];function U_(e,t,n){const r=this;let i,o;return s;function s(d){return!gc(d)||!fv.call(r,r.previous)||Kd(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return gc(d)?(e.consume(d),l):d===64?(e.consume(d),a):n(d)}function a(d){return d===46?e.check(F_,c,u)(d):d===45||d===95||rt(d)?(o=!0,e.consume(d),a):c(d)}function u(d){return e.consume(d),i=!0,a}function c(d){return o&&i&&nt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function H_(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!cv.call(r,r.previous)||Kd(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(z_,e.attempt(ov,e.attempt(sv,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function W_(e,t,n){const r=this;let i="",o=!1;return s;function s(d){return(d===72||d===104)&&dv.call(r,r.previous)&&!Kd(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),l):n(d)}function l(d){if(nt(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),l;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),a}return n(d)}function a(d){return d===47?(e.consume(d),o?u:(o=!0,a)):n(d)}function u(d){return d===null||ll(d)||Oe(d)||Tr(d)||Ro(d)?n(d):e.attempt(ov,e.attempt(sv,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function V_(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function G_(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check(lv,a,l)(u):u===null||Oe(u)||Tr(u)||u!==45&&Ro(u)?a(u):(o=!0,e.consume(u),s)}function l(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function a(u){return i||r||!o?n(u):t(u)}}function K_(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(lv,t,o)(s):s===null||Oe(s)||Tr(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function q_(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||Oe(l)||Tr(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||Oe(l)||Tr(l)?t(l):r(l)}function o(l){return nt(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):nt(l)?(e.consume(l),s):n(l)}}function Y_(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return rt(o)?n(o):t(o)}}function cv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Oe(e)}function dv(e){return!nt(e)}function fv(e){return!(e===47||gc(e))}function gc(e){return e===43||e===45||e===46||e===95||rt(e)}function Kd(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const X_={tokenize:iT,partial:!0};function Q_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tT,continuation:{tokenize:nT},exit:rT}},text:{91:{name:"gfmFootnoteCall",tokenize:eT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Z_,resolveTo:J_}}}}function Z_(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return l;function l(a){if(!s||!s._balanced)return n(a);const u=nn(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function J_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function eT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),a}function a(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||Oe(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(nn(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Oe(d)||(s=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function tT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,l;return a;function a(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(y)}function c(y){if(s>999||y===93&&!l||y===null||y===91||Oe(y))return n(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=nn(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Oe(y)||(l=!0),s++,e.consume(y),y===92?d:c}function d(y){return y===91||y===92||y===93?(e.consume(y),s++,c):c(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(o)||i.push(o),je(e,p,"gfmFootnoteDefinitionWhitespace")):n(y)}function p(y){return t(y)}}function nT(e,t,n){return e.check(Oo,t,e.attempt(X_,t,n))}function rT(e){e.exit("gfmFootnoteDefinition")}function iT(e,t,n){const r=this;return je(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function oT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,l){let a=-1;for(;++a<s.length;)if(s[a][0]==="enter"&&s[a][1].type==="strikethroughSequenceTemporary"&&s[a][1]._close){let u=a;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[a][1].end.offset-s[a][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[a][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[a][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[a][1].start)},h=[["enter",c,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&tn(h,h.length,0,Ml(p,s.slice(u+1,a),l)),tn(h,h.length,0,[["exit",d,l],["enter",s[a][1],l],["exit",s[a][1],l],["exit",c,l]]),tn(s,u-1,a-u+3,h),a=u+h.length-2;break}}for(a=-1;++a<s.length;)s[a][1].type==="strikethroughSequenceTemporary"&&(s[a][1].type="data");return s}function o(s,l,a){const u=this.previous,c=this.events;let d=0;return h;function h(y){return u===126&&c[c.length-1][1].type!=="characterEscape"?a(y):(s.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const x=nr(u);if(y===126)return d>1?a(y):(s.consume(y),d++,p);if(d<2&&!n)return a(y);const E=s.exit("strikethroughSequenceTemporary"),v=nr(y);return E._open=!v||v===2&&!!x,E._close=!x||x===2&&!!v,l(y)}}}class sT{constructor(){this.map=[],this.index=new Map}add(t,n,r){lT(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}}function lT(e,t,n,r){if(n===0&&r.length===0)return;const i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}const o=[t,n,r];e.map.push(o),e.index.set(t,o)}function aT(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function uT(){return{flow:{null:{name:"table",tokenize:cT,resolveAll:dT}}}}function cT(e,t,n){const r=this;let i=0,o=0,s;return l;function l(k){let L=r.events.length-1;for(;L>-1;){const{type:M}=r.events[L][1];if(M==="lineEnding"||M==="linePrefix")L--;else break}const _=L>-1?r.events[L][1].type:null,R=_==="tableHead"||_==="tableRow"?S:a;return R===S&&r.parser.lazy[r.now().line]?n(k):R(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(s=!0,o+=1),c(k)}function c(k){return k===null?n(k):ge(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):n(k):ke(k)?je(e,c,"whitespace")(k):(o+=1,s&&(s=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||Oe(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?h:d)}function h(k){return k===92||k===124?(e.consume(k),d):d(k)}function p(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),s=!1,ke(k)?je(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):y(k))}function y(k){return k===45||k===58?E(k):k===124?(s=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),x):C(k)}function x(k){return ke(k)?je(e,E,"whitespace")(k):E(k)}function E(k){return k===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),v):k===45?(o+=1,v(k)):k===null||ge(k)?w(k):C(k)}function v(k){return k===45?(e.enter("tableDelimiterFiller"),m(k)):C(k)}function m(k){return k===45?(e.consume(k),m):k===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(k))}function g(k){return ke(k)?je(e,w,"whitespace")(k):w(k)}function w(k){return k===124?y(k):k===null||ge(k)?!s||i!==o?C(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):C(k)}function C(k){return n(k)}function S(k){return e.enter("tableRow"),$(k)}function $(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),$):k===null||ge(k)?(e.exit("tableRow"),t(k)):ke(k)?je(e,$,"whitespace")(k):(e.enter("data"),O(k))}function O(k){return k===null||k===124||Oe(k)?(e.exit("data"),$(k)):(e.consume(k),k===92?N:O)}function N(k){return k===92||k===124?(e.consume(k),O):O(k)}}function dT(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,a=0,u,c,d;const h=new sT;for(;++n<e.length;){const p=e[n],y=p[1];p[0]==="enter"?y.type==="tableHead"?(l=!1,a!==0&&(Rh(h,t,a,u,c),c=void 0,a=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",u,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",c,t]])),i=y.type==="tableDelimiterRow"?2:c?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=us(h,t,o,i,void 0,d),o=[0,0,0,0]),s[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=us(h,t,o,i,void 0,d)),o=s,s=[o[1],n,0,0])):y.type==="tableHead"?(l=!0,a=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(a=n,o[1]!==0?(s[0]=s[1],d=us(h,t,o,i,n,d)):s[1]!==0&&(d=us(h,t,s,i,n,d)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(s[3]=n)}for(a!==0&&Rh(h,t,a,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=aT(t.events,n))}return e}function us(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Dr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Dr(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Dr(t.events,n[2]),c=Dr(t.events,n[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,x=n[3]-n[2]-1;e.add(y,x,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Dr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Rh(e,t,n,r,i){const o=[],s=Dr(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Dr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const fT={name:"tasklistCheck",tokenize:hT};function pT(){return{text:{91:fT}}}function hT(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return Oe(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),s):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),s):n(a)}function s(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(a)}function l(a){return ge(a)?t(a):ke(a)?e.check({tokenize:mT},t,n)(a):n(a)}}function mT(e,t,n){return je(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function gT(e){return gx([B_(),Q_(),oT(e),uT(),pT()])}const yT={};function xT(e){const t=this,n=e||yT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(gT(n)),o.push(P_()),s.push(D_(n))}function vT({file:e,split:t,version:n}){const r=e.status==="added"?["new"]:e.status==="removed"?["old"]:t?["old","new"]:["new"];return f.jsx("div",{className:`fs-md-sides n${r.length}`,children:r.map(i=>f.jsx(wT,{side:i,path:i==="old"?e.oldPath??e.path:e.path,diffPath:e.path,version:n,labelled:r.length>1},i))})}function wT({side:e,path:t,diffPath:n,version:r,labelled:i}){const[o,s]=H.useState(null),[l,a]=H.useState(null);H.useEffect(()=>{let c=!0;return a(null),Uy(n,e).then(d=>c&&s(d.join(`
|
|
145
|
-
`)),d=>c&&a(d instanceof Error?d.message:String(d))),()=>{c=!1}},[n,e,r]);const u={a:({href:c,children:d})=>c&&/^(https?:|mailto:)/i.test(c)?f.jsx("a",{href:c,target:"_blank",rel:"noreferrer noopener",children:d}):f.jsx("span",{className:"fs-md-link",title:c,children:d}),code:({className:c,children:d})=>{var x;const h=(x=/language-([\w+-]+)/.exec(c??""))==null?void 0:x[1],p=String(d??"").replace(/\n$/,""),y=h?I1(p,h):void 0;return y?f.jsx("code",{className:c,children:y.map((E,v)=>f.jsxs("span",{children:[E.map((m,g)=>m.types?f.jsx("span",{className:`token ${m.types}`,children:m.text},g):m.text),v<y.length-1&&`
|
|
146
|
-
`]},v))}):f.jsx("code",{className:c,children:d})}};return f.jsxs("div",{className:`fs-md-side ${e}`,children:[i&&f.jsx("div",{className:`fs-image-side ${e}`,children:e==="old"?"変更前":"変更後"}),l?f.jsxs("div",{className:"ds-muted",children:["読み込めませんでした: ",l]}):o===null?f.jsx("div",{className:"ds-muted",children:"読み込み中…"}):f.jsx("div",{className:"fs-md",children:f.jsx(KN,{remarkPlugins:[xT],components:u,urlTransform:(c,d)=>kT(c,d,t,e,r),children:o})})]})}function kT(e,t,n,r,i){if(t!=="src"||/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("//"))return Bx(e);const o=bT(n,e.replace(/[?#].*$/,""));return o?Hy(o,r,i):""}function bT(e,t){let n=t;try{n=decodeURIComponent(t)}catch{}const r=n.startsWith("/")?[]:e.split("/").slice(0,-1);for(const i of n.split("/"))if(!(i===""||i==="."))if(i===".."){if(!r.length)return null;r.pop()}else r.push(i);return r.length?r.join("/"):null}const ET={added:"A",modified:"M",removed:"D",renamed:"R"},ST={added:"追加",modified:"変更",removed:"削除",renamed:"名前の変更"},pv=1500;function hv(e){if(Qu(e.path))return{label:"画像",first:e.binary?"preview":"diff"};if(s1(e.path)&&!e.binary&&!e.large)return{label:"プレビュー",first:"diff"}}const CT=H.memo(function(t){const{file:n}=t,r=H.useRef(null),i=NT(r,t.scrollRoot),[o,s]=H.useState(!1),l=Xy(n),a=hv(n),u=a?t.view:"diff",c=H.useMemo(()=>u1(n,t.content,t.expansion),[n,t.content,t.expansion]),d=H.useMemo(()=>i?$1(n,t.content):void 0,[n,t.content,i]);H.useEffect(()=>(t.register(n.path,r.current),()=>t.register(n.path,null)),[n.path,t.register]);const h=async()=>{await Io(n.path),s(!0),window.setTimeout(()=>s(!1),1400)},p=n.binary?"バイナリファイルのため、行の差分はありません":n.large?"大きすぎるため、行の差分を表示していません":n.chunks.length===0?n.modeChange?`ファイルのモードだけが変わりました(${n.modeChange})`:n.status==="renamed"?"名前だけが変わりました(内容の変更はありません)":"空のファイルです":void 0,y=()=>u==="preview"?i?Qu(n.path)?f.jsx(L1,{file:n,version:t.version}):f.jsx(vT,{file:n,split:t.mode==="split",version:t.version}):f.jsx("div",{className:"fs-placeholder",style:{height:240}}):p?f.jsx("div",{className:"fs-note",children:p}):i?f.jsx(N1,{file:n,mode:t.mode,rows:c,tokens:d,byLine:t.byLine,onExpand:(x,E)=>t.onExpand(n.path,x,E)}):f.jsx("div",{className:"fs-placeholder",style:{height:(l+n.chunks.length)*20}});return f.jsxs("section",{ref:r,className:`fs-file${t.reviewed?" reviewed":""}`,"data-path":n.path,children:[f.jsxs("header",{className:"fs-file-head",children:[f.jsx("button",{className:`fs-fold${t.open?" open":""}`,onClick:()=>t.onToggle(n.path),"aria-label":t.open?"折りたたむ":"開く","aria-expanded":t.open,children:f.jsx(ey,{size:14})}),f.jsx("span",{className:`fs-st ${n.status}`,title:ST[n.status],children:ET[n.status]}),f.jsxs("span",{className:"fs-file-path",title:n.oldPath?`${n.oldPath} → ${n.path}`:n.path,onClick:()=>t.onToggle(n.path),children:[n.oldPath&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"fs-old-path",children:n.oldPath}),f.jsx("span",{className:"ds-muted",children:" → "})]}),n.path]}),f.jsx("button",{className:"fs-icon-btn",onClick:()=>void h(),title:o?"コピーしました":"パスをコピー","aria-label":"パスをコピー",children:f.jsx(Jg,{size:13})}),n.generated&&f.jsx("span",{className:"fs-tag",title:"ロックファイルや生成されたコード(最初は折りたたんでいます)",children:"生成"}),f.jsx("span",{className:"ds-spacer"}),a&&!(Qu(n.path)&&n.binary)&&f.jsx("span",{className:"ds-seg fs-view-seg",role:"radiogroup","aria-label":"表示",children:[["diff","差分"],["preview",a.label]].map(([x,E])=>f.jsx("button",{role:"radio","aria-checked":u===x,className:u===x?"on":"",onClick:()=>t.onView(n.path,x),children:E},x))}),t.commentCount>0&&f.jsx(_l,{n:t.commentCount,title:`コメント ${t.commentCount}`}),f.jsx(ki,{stats:{added:n.additions,removed:n.deletions},title:`追加 ${n.additions} 行・削除 ${n.deletions} 行`}),f.jsxs("label",{className:"ds-check fs-viewed",title:"確認済みにすると折りたたみます(このファイルがまた変わると外れます)",children:[f.jsx("input",{type:"checkbox",checked:t.reviewed,onChange:x=>t.onReviewed(n.path,x.target.checked)}),"確認済み"]})]}),t.open&&f.jsxs("div",{className:"fs-file-body",children:[t.orphans.length>0&&f.jsxs("div",{className:"fs-orphans",children:[f.jsx("div",{className:"ds-muted",children:"差分からなくなった行へのコメント"}),t.orphans.map(x=>f.jsx(Nd,{c:x,showWhere:!0},x.id))]}),y()]}),!t.open&&(n.generated||l>pv)&&!t.reviewed&&f.jsxs("div",{className:"fs-folded",children:[n.generated?"生成されたファイルのため折りたたんでいます":`大きな差分(${l} 行)のため折りたたんでいます`,f.jsx("button",{className:"ds-link",onClick:()=>t.onToggle(n.path),children:"表示する"})]})]})});function NT(e,t){const[n,r]=H.useState(!1);return H.useEffect(()=>{const i=e.current;if(n||!i||!t)return;const o=new IntersectionObserver(s=>{s.some(l=>l.isIntersecting)&&r(!0)},{root:t,rootMargin:"1200px 0px"});return o.observe(i),()=>o.disconnect()},[e,t,n]),n}const jT={added:"A",modified:"M",removed:"D",renamed:"R"};function _T({tree:e,current:t,reviewed:n,commentCounts:r,onSelect:i,onReviewed:o}){const[s,l]=H.useState(""),[a,u]=H.useState(new Set),c=H.useMemo(()=>qy(e,s),[e,s]),d=H.useMemo(()=>Ky(e),[e]),h=y=>u(x=>{const E=new Set(x);return E.has(y)?E.delete(y):E.add(y),E}),p=(y,x)=>{const E={paddingLeft:8+x*12};if(y.file){const m=y.file,g=r.get(m.path)??0,w=n.has(m.path);return f.jsxs("div",{className:`fs-tree-row file${t===m.path?" current":""}${w?" reviewed":""}`,style:E,onClick:()=>i(m.path),title:m.oldPath?`${m.oldPath} → ${m.path}`:m.path,children:[f.jsx("input",{type:"checkbox",className:"fs-tree-check",checked:w,onClick:C=>C.stopPropagation(),onChange:C=>o(m.path,C.target.checked),"aria-label":`${m.path} を確認済みにする`,title:"確認済み"}),f.jsx("span",{className:`fs-st small ${m.status}`,children:jT[m.status]}),f.jsx("span",{className:"fs-tree-name",children:y.name}),g>0&&f.jsx(_l,{n:g}),f.jsxs("span",{className:"fs-tree-counts",children:[m.additions>0&&f.jsxs("span",{className:"added",children:["+",m.additions]}),m.deletions>0&&f.jsxs("span",{className:"removed",children:["−",m.deletions]})]})]},y.path)}const v=s.trim()!==""||!a.has(y.path);return f.jsxs("div",{children:[f.jsxs("div",{className:"fs-tree-row dir",style:E,onClick:()=>h(y.path),title:y.path,children:[f.jsx("span",{className:`fs-fold small${v?" open":""}`,children:f.jsx(ey,{size:12})}),f.jsx("span",{className:"fs-tree-name",children:y.name})]}),v&&y.children.map(m=>p(m,x+1))]},y.path)};return f.jsxs("aside",{className:"fs-tree",children:[f.jsxs("div",{className:"fs-tree-head",children:[f.jsx("input",{className:"fs-filter",type:"search",placeholder:"ファイルを絞り込む",value:s,onChange:y=>l(y.target.value)}),d.length>0&&f.jsx("button",{className:"fs-icon-btn",onClick:()=>u(a.size?new Set:new Set(d)),title:a.size?"すべてのフォルダを開く":"すべてのフォルダを閉じる",children:a.size?"+":"−"})]}),f.jsx("div",{className:"fs-tree-body",children:c&&c.children.length>0?c.children.map(y=>p(y,0)):f.jsx("div",{className:"fs-tree-empty ds-muted",children:s?"一致するファイルはありません":"変更されたファイルはありません"})})]})}const mv="fileshape.reviewed:",TT=e=>`${e.repoRoot}|${e.targetLabel}|${e.baseLabel}`,Oh=e=>$n(mv+e,{}),$T=(e,t)=>mn(mv+e,t),IT=e=>new Map(e.map(t=>[t.path,m1(t)]));function LT(e,t){const n=new Set;for(const[r,i]of e)t[r]===i&&n.add(r);return n}const Ga="fileshape.treeWidth",Ka=280,AT={};function RT({data:e,active:t,onComments:n}){var he;const r=H.useMemo(()=>l1(e.files),[e]),i=H.useMemo(()=>Gy(r),[r]),o=TT(e),[s,l]=H.useState(()=>ty("fileshape","mode","unified")),a=Z=>{l(Z),ny("fileshape","mode",Z)},[u,c]=H.useState(()=>Oh(o));H.useEffect(()=>c(Oh(o)),[o]);const d=H.useMemo(()=>IT(e.files),[e]),h=H.useMemo(()=>LT(d,u),[d,u]),[p,y]=H.useState({}),x=Z=>{if(Z in p)return p[Z];const ee=wn(e,Z);return!(h.has(Z)||ee.generated||Xy(ee)>pv)},E=H.useRef(x);E.current=x;const v=H.useCallback(Z=>y(ee=>({...ee,[Z]:!E.current(Z)})),[]),[m,g]=H.useState(new Map),[w,C]=H.useState({}),[S,$]=H.useState(0),O=H.useRef(new Map),N=H.useRef(!0);H.useEffect(()=>{if(N.current){N.current=!1;return}O.current=new Map,g(new Map),C({}),$(Z=>Z+1)},[e]);const k=H.useCallback(Z=>{let ee=O.current.get(Z);if(!ee){const fe=O.current;ee=Uy(Z,"new").then(ye=>(O.current===fe&&g(V=>new Map(V).set(Z,ye)),ye)),ee.catch(()=>fe.delete(Z)),fe.set(Z,ee)}return ee},[]),L=H.useCallback(async(Z,ee,fe)=>{const ye=wn(e,Z);if(!ye)return;let V;try{V=await k(Z)}catch(F){window.alert(`ファイルを読めませんでした: ${F instanceof Error?F.message:String(F)}`);return}const ie=Al(ye,V.length)[ee.index];ie&&C(F=>({...F,[Z]:c1(F[Z]??{},ie,fe,V.length)}))},[e,k]),[_,R]=H.useState({}),M=H.useCallback((Z,ee)=>R(fe=>({...fe,[Z]:ee})),[]),W=H.useRef(new Map),K=H.useCallback((Z,ee)=>{ee?W.current.set(Z,ee):W.current.delete(Z)},[]),[G,D]=H.useState(null),U=H.useCallback((Z,ee)=>{const fe=d.get(Z);if(fe&&(c(ye=>{const V={...ye};return ee?V[Z]=fe:delete V[Z],$T(o,V),V}),y(ye=>({...ye,[Z]:!ee})),ee)){const ye=W.current.get(Z),V=G;ye&&V&&ye.getBoundingClientRect().top<V.getBoundingClientRect().top&&ye.scrollIntoView({block:"start"})}},[d,o,G]),[b,Y]=H.useState(()=>k1(o)),[X,j]=H.useState(null),[I,T]=H.useState(null),z=H.useCallback(Z=>{Y(Z),b1(o,Z)},[o]),q=H.useMemo(()=>({run:e,comments:b,contents:m,composing:X,editing:I,compose:Z=>{j(Z),T(null)},edit:Z=>{T(Z),j(null)},add:(Z,ee)=>{z([...b,v1(Z,ee)]),j(null)},update:(Z,ee)=>{z(b.map(fe=>fe.id===Z?{...fe,body:ee}:fe)),T(null)},remove:Z=>z(b.filter(ee=>ee.id!==Z))}),[e,b,m,X,I,z]),Q=H.useMemo(()=>{const Z=new Map,ee=[];for(const fe of b){const ye=wn(e,fe.path);if(!ye){ee.push(fe);continue}let V=Z.get(fe.path);V||Z.set(fe.path,V={byLine:new Map,orphans:[]});const ie=So(ye,fe,m.get(fe.path));if(ie.line===void 0)V.orphans.push(fe);else{const F=Pr(fe.side,ie.endLine??ie.line);V.byLine.set(F,[...V.byLine.get(F)??[],fe])}}return{byFile:Z,gone:ee}},[b,e,m]);H.useEffect(()=>{for(const Z of b){const ee=wn(e,Z.path);ee&&!Op(ee,Z)&&!m.has(Z.path)&&k(Z.path).catch(()=>{})}C(Z=>{let ee=Z;for(const fe of b){const ye=wn(e,fe.path),V=m.get(fe.path);if(!ye||!V||Op(ye,fe))continue;const ie=So(ye,fe,V);if(ie.line===void 0)continue;const F=ie.endLine??ie.line,[J,se]=fe.side==="new"?[ie.line,F]:[Zu(ye,ie.line)??ie.line,Zu(ye,F)??F],ue=d1(ye,V.length,ee[fe.path]??{},J,se);ue!==(ee[fe.path]??{})&&JSON.stringify(ue)!==JSON.stringify(ee[fe.path]??{})&&(ee={...ee,[fe.path]:ue})}return ee})},[b,m,e,k]);const re=H.useMemo(()=>({byLine:new Map,orphans:[]}),[]),P=H.useMemo(()=>{const Z=new Map;for(const ee of b)Z.set(ee.path,(Z.get(ee.path)??0)+1);return Z},[b]);H.useEffect(()=>{const Z=b.filter(ee=>x1(e,ee,m.get(ee.path))!=="resolved").length;n({open:Z,prompt:()=>Zy(e,b,{header:!1,contents:m}).text})},[b,e,m,n]);const[te,ce]=H.useState(((he=i[0])==null?void 0:he.path)??null);H.useEffect(()=>{if(!G)return;let Z=0;const ee=()=>{cancelAnimationFrame(Z),Z=requestAnimationFrame(()=>{var V;const fe=G.getBoundingClientRect().top+8;let ye=((V=i[0])==null?void 0:V.path)??null;for(const ie of i){const F=W.current.get(ie.path);if(F)if(F.getBoundingClientRect().top<=fe)ye=ie.path;else break}ce(ye)})};return G.addEventListener("scroll",ee,{passive:!0}),()=>{G.removeEventListener("scroll",ee),cancelAnimationFrame(Z)}},[G,i]);const Ae=H.useRef(null),Se=Z=>{var J;x(Z)||y(se=>({...se,[Z]:!0})),ce(Z),(J=Ae.current)==null||J.stop();const ee=G;if(!ee)return;let fe=0,ye=0;const V=performance.now(),ie=()=>{cancelAnimationFrame(fe),ee.removeEventListener("wheel",ie),ee.removeEventListener("touchmove",ie),ee.removeEventListener("keydown",ie),Ae.current=null},F=()=>{const se=W.current.get(Z);if(se){const ue=se.getBoundingClientRect().top-ee.getBoundingClientRect().top,Ie=ee.scrollTop+ee.clientHeight>=ee.scrollHeight-1;Math.abs(ue)>1&&!(Ie&&ue>0)?(ee.scrollTop+=ue,ye=0):ye++}if(ye>10||performance.now()-V>1500)return ie();fe=requestAnimationFrame(F)};ee.addEventListener("wheel",ie,{passive:!0}),ee.addEventListener("touchmove",ie,{passive:!0}),ee.addEventListener("keydown",ie),Ae.current={stop:ie},fe=requestAnimationFrame(F)};H.useEffect(()=>()=>{var Z;return(Z=Ae.current)==null?void 0:Z.stop()},[]);const[be,Fe]=H.useState(()=>$n(Ga,Ka)),B=H.useRef(null),ne=g1(e.files),oe=y1(e.files);return f.jsx(ex.Provider,{value:q,children:f.jsxs("div",{className:"fs-app",ref:B,style:{gridTemplateColumns:`${be}px ${jr}px minmax(0, 1fr)`},"data-active":t||void 0,children:[f.jsxs(md,{children:[f.jsxs(gd,{children:[f.jsx(hi,{children:"ファイル"}),f.jsx($l,{stats:ne,unit:"ファイル",showZero:!0}),f.jsx(yd,{}),f.jsx(hi,{children:"行"}),f.jsx(ki,{stats:oe,title:`追加 ${oe.added} 行・削除 ${oe.removed} 行`,showZero:!0})]}),f.jsx(xd,{}),f.jsx(vd,{done:h.size,total:d.size,title:"確認済みにしたファイル(そのファイルがまた変わると外れます)"}),f.jsx("div",{className:"ds-seg",role:"radiogroup","aria-label":"表示",children:[["unified","Unified"],["split","Split"]].map(([Z,ee])=>f.jsx("button",{role:"radio","aria-checked":s===Z,className:s===Z?"on":"",onClick:()=>a(Z),children:ee},Z))})]}),f.jsx(_T,{tree:r,current:te,reviewed:h,commentCounts:P,onSelect:Se,onReviewed:U}),f.jsx(Eo,{title:"ドラッグで幅を変更(ダブルクリックで戻す)",start:()=>be,onDrag:(Z,ee)=>{var fe;return Fe(Math.max(160,Math.min(Z+ee,(((fe=B.current)==null?void 0:fe.clientWidth)??1200)-320)))},onEnd:()=>mn(Ga,be),onReset:()=>{Fe(Ka),mn(Ga,Ka)}}),f.jsxs("main",{className:"fs-main",ref:D,children:[Q.gone.length>0&&f.jsxs("div",{className:"fs-orphans top",children:[f.jsx("div",{className:"ds-muted",children:"差分からなくなったファイルへのコメント"}),Q.gone.map(Z=>f.jsx(Nd,{c:Z,showWhere:!0},Z.id))]}),i.length===0&&f.jsx("div",{className:"fs-empty",children:"変更されたファイルはありません"}),i.map(Z=>{var fe;const ee=Q.byFile.get(Z.path)??re;return f.jsx(CT,{file:Z,mode:s,open:x(Z.path),reviewed:h.has(Z.path),content:m.get(Z.path),expansion:w[Z.path]??AT,view:_[Z.path]??((fe=hv(Z))==null?void 0:fe.first)??"diff",version:S,byLine:ee.byLine,orphans:ee.orphans,commentCount:P.get(Z.path)??0,scrollRoot:G,onToggle:v,onReviewed:U,onExpand:L,onView:M,register:K},Z.path)})]})]})})}const OT={id:"file",title:"ファイル",description:"ファイルの差分(fileshape): 変更された各ファイルの行の差分",icon:Kk,View:RT,badge:e=>e.files.length||void 0},MT=[OT,i1,db];async function Mh(e){const t=await fetch(e);if(!t.ok)throw new Error(await t.text());return await t.json()}const Ph=()=>window.location.hash.replace(/^#\/?/,"");function PT(){const[e,t]=H.useState(null),[n,r]=H.useState(null),[i,o]=H.useState({}),[s,l]=H.useState(!1),[a,u]=H.useState(Ph()),[c,d]=H.useState({}),[h,p]=H.useState(null),y=H.useMemo(()=>e?MT.filter(N=>e.modules.includes(N.id)):[],[e]),x=H.useCallback(async N=>{try{const k=await Mh(`/api/info${N?"?refresh=1":""}`);t(k),r(null),o(L=>Object.fromEntries(k.modules.map(_=>{var R;return[_,((R=L[_])==null?void 0:R.state)==="ready"?L[_]:{state:"loading"}]}))),await Promise.all(k.modules.map(async L=>{let _;try{const R=await Mh(`/api/module/${L}`);_="error"in R?{state:"error",error:R.error}:{state:"ready",data:R.data}}catch(R){_={state:"error",error:R instanceof Error?R.message:String(R)}}o(R=>({...R,[L]:_}))}))}catch(k){r(k instanceof Error?k.message:String(k))}},[]);H.useEffect(()=>{x(!1)},[x]),H.useEffect(()=>{const N=()=>u(Ph());return window.addEventListener("hashchange",N),()=>window.removeEventListener("hashchange",N)},[]);const E=y.find(N=>N.id===a)??y[0],v=N=>{window.location.hash=N,u(N)},m=H.useRef(new Map),g=N=>{let k=m.current.get(N);return k||m.current.set(N,k=L=>d(_=>({..._,[N]:L}))),k},w=async()=>{l(!0),await x(!0),l(!1)},C=N=>{p(N),window.setTimeout(()=>p(k=>k===N?null:k),2500)},S=y.filter(N=>{var k;return(((k=c[N.id])==null?void 0:k.open)??0)>0}),$=S.reduce((N,k)=>N+c[k.id].open,0),O=async()=>{if(!e||$===0)return;const N=S.map(k=>[`## ${k.description}`,"",c[k.id].prompt().trimEnd()].join(`
|
|
147
|
-
`));await Io([...Tl(e),"",...N.flatMap(k=>[k,""])].join(`
|
|
148
|
-
`).trimEnd()+`
|
|
149
|
-
`),C(`${$} 件をコピーしました`)};return n?f.jsxs("div",{className:"shell-message",children:["読み込めませんでした: ",n]}):!e||!E?f.jsx("div",{className:"shell-message shell-muted",children:"解析中…"}):f.jsxs("div",{className:`shell ${y.length>1?"with-rail":""}`,children:[y.length>1&&f.jsx("nav",{className:"rail","aria-label":"モジュール",children:y.map(N=>{var k;return f.jsx(DT,{module:N,loaded:i[N.id],active:N===E,comments:((k=c[N.id])==null?void 0:k.open)??0,onClick:()=>v(N.id)},N.id)})}),f.jsxs("header",{className:"shell-head",children:[f.jsx("span",{className:"shell-brand",children:"diffshape"}),y.length===1&&f.jsx("span",{className:"shell-module",children:E.title}),f.jsxs("span",{className:"shell-compare",title:`${e.repoRoot}
|
|
150
|
-
${e.baseLabel} → ${e.targetLabel}`,children:[f.jsx("span",{className:"ds-ref",children:e.baseLabel}),f.jsx("span",{className:"shell-muted",children:"→"}),f.jsx("span",{className:"ds-ref",children:e.targetLabel})]}),f.jsx("span",{className:"shell-spacer"}),h&&f.jsx("span",{className:"shell-note",children:h}),f.jsxs("button",{className:"ds-btn ds-btn-note",onClick:()=>void O(),disabled:$===0,title:$?`未対応のコメント(${S.map(N=>`${N.title} ${c[N.id].open}`).join("、")})を AI 用のプロンプトとしてコピー`:"未対応のコメントはありません",children:[f.jsx(Jg,{size:13}),"AI 用にコピー",$>0?`(${$})`:""]}),f.jsxs("button",{className:"ds-btn",onClick:()=>void w(),disabled:s,title:"リポジトリを読み直して比較し直す",children:[f.jsx(Gk,{size:13,className:s?"shell-spin":void 0}),s?"解析中…":"再読み込み"]})]}),f.jsx("main",{className:"shell-body",children:y.map(N=>{const k=i[N.id]??{state:"loading"},L=N===E;return f.jsxs("section",{className:"shell-module-root","data-module":N.id,hidden:!L,children:[k.state==="loading"&&f.jsx("div",{className:"shell-message shell-muted",children:"解析中…"}),k.state==="error"&&f.jsxs("div",{className:"shell-message",children:[f.jsx("p",{children:N.description}),f.jsx("p",{className:"shell-error",children:k.error})]}),k.state==="ready"&&f.jsx(N.View,{data:k.data,active:L,onComments:g(N.id)},`${e.targetLabel}|${e.baseLabel}`)]},N.id)})})]})}function DT({module:e,loaded:t,active:n,comments:r,onClick:i}){var l;const o=(t==null?void 0:t.state)==="ready"?(l=e.badge)==null?void 0:l.call(e,t.data):void 0,s=e.icon;return f.jsxs("button",{className:`rail-btn ${n?"on":""} ${(t==null?void 0:t.state)==="error"?"unavailable":""}`,onClick:i,title:`${e.description}${o?`
|
|
151
|
-
変更 ${o}`:""}${r?`
|
|
152
|
-
未対応のコメント ${r}`:""}`,"aria-label":e.title,"aria-current":n?"page":void 0,children:[f.jsx(s,{size:20}),f.jsx("span",{className:"rail-label",children:e.title}),o!==void 0&&f.jsx("span",{className:"rail-badge",children:o>99?"99+":o}),r>0&&f.jsx("span",{className:"rail-dot"})]})}Qg(document.getElementById("root")).render(f.jsx(H.StrictMode,{children:f.jsx(PT,{})}));
|